It would be possible to check for byte by byte comparisons, by using
"FC" a "dos" utility available on all windows systems to delete
duplicate files no matter what their name, I'm sure that linux/unix has
such a utility but I can't remember it's name right now.  There are
several problems to overcome, none of which will solve the most
important one.  There must be a way for the computer to recognize a
duplicate image, not a duplicate file.  It's easy enough to write
something that will delete files with the same name in the same or
different directories.  A bit more complicated to recognize and delete
duplicate files with different names, (and this begins to become time
consuming), but I know of no foolproof method to automate deletion of
duplicate visual images,  at least not with the computing power
available in a PC or Mac.

Bob W wrote:
> I've just tested it from the command line (therefore using % instead
> of %%) and it works. 
>
> It only finds files in the current directory, although it can easily
> be changed to search other directories. If there are no .jpg files, or
> no matching .dng files then it won't do anything. In other words, if
> you have a file called waters.jpg and a copy of the picture in a file
> called roger.dng it won't recognise that they are the same.
>
> --
>  Bob
>  
>
>   
>> -----Original Message-----
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
>> Behalf Of David J Brooks
>> Sent: 31 December 2007 23:50
>> To: Pentax-Discuss Mail List
>> Subject: Re: Lightroom question (Godfrey?)
>>
>> I replaced del with echo and all i got was Is there any body out
>> there, que Pink Floyd
>>
>> Dave
>>
>> On Dec 31, 2007 2:03 PM, Bob W <[EMAIL PROTECTED]> wrote:
>>     
>>> I've accepted the challenge I set you, and come up with an answer:
>>>
>>>         for %%f in (*.jpg) do if exist %%~nf.dng del %%~nf.jpg
>>>
>>> I haven't tested this as written, so it's at your own risk. 
>>>       
>> You could
>>     
>>> try replacing 'del' with 'echo' to see what will be deleted.
>>>
>>> --
>>>  Bob
>>>
>>>
>>>       
>>>> -----Original Message-----
>>>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
>>>> Behalf Of Bob W
>>>> Sent: 31 December 2007 18:11
>>>> To: 'Pentax-Discuss Mail List'
>>>>         
>>>> Subject: RE: Lightroom question (Godfrey?)
>>>>
>>>> I have had a dig around in Lightroom but nothing leaps out as an
>>>>         
>>> easy
>>>       
>>>> way to do it. However, I don't think you need to use Delphi to
>>>>         
> do
>   
>>> what
>>>       
>>>> you want - it should be quite straightforward to do with a batch
>>>> script in Windows.
>>>>
>>>> I'd need to refresh my knowledge of this quite a bit to 
>>>>         
>> come up with
>>     
>>> a
>>>       
>>>> working script, but your starter for 10 is something like this:
>>>>
>>>>       for %%f in (*.jpg) do if exist %%f.dng del %%f.jpg
>>>>
>>>> Your challenge is to split the extension off the variable and
>>>>         
>>> replace
>>>       
>>>> it with .dng
>>>>
>>>> --
>>>>  Bob
>>>>
>>>>
>>>>         
>>>>> -----Original Message-----
>>>>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
>>>>> Behalf Of graywolf
>>>>> Sent: 31 December 2007 17:40
>>>>> To: Pentax-Discuss Mail List
>>>>> Subject: Re: Lightroom question (Godfrey?)
>>>>>
>>>>> I it were unix/linux a simple script would do it, in
>>>>> windblows I have never found a simple way to do it. Maybe
>>>>> someone will come up with one, so I will watch this thread.
>>>>>
>>>>> I have a program (freeware, I think) called winmerge that
>>>>> can do some interesting things like compare files and merge
>>>>> in the ones that are missing. That I think can do what you
>>>>> want, but he interface is not what I would call easy to
>>>>> figure out.
>>>>>
>>>>> Graywolf (Tom Rittenhouse)
>>>>> Website: http://www.graywolfphoto.com
>>>>> Blog:    http://www.graywolfphoto.com/journal/
>>>>> --------------------------------------------------------------
>>>>> ---------
>>>>>
>>>>> Thibouille wrote:
>>>>>           
>>>>>> I discovered I have multiple copies of some pictures in my
>>>>>>             
>>>>> Lightroom library.
>>>>>           
>>>>>> The thing is one copy is Dng and the other is Jpeg.
>>>>>>
>>>>>> I don't want to kill all Jpegs since some pictures are only
>>>>>>             
>>>>> available in Jpeg.
>>>>>           
>>>>>> I would simply wanna kill all Jpeg copies which also exist
>>>>>>             
>>>>> in Dng format.
>>>>>           
>>>>>> Is there a way to do that in Lightroom or shall I program
>>>>>>             
>>>>> that myself
>>>>>           
>>>>>> with mighty Delphi ?
>>>>>>
>>>>>> Thanks !
>>>>>>
>>>>>>             
>>>>> --
>>>>> PDML Pentax-Discuss Mail List
>>>>> [email protected]
>>>>> http://pdml.net/mailman/listinfo/pdml_pdml.net
>>>>> to UNSUBSCRIBE from the PDML, please visit the link directly
>>>>> above and follow the directions.
>>>>>
>>>>>
>>>>>           
>>>> --
>>>> PDML Pentax-Discuss Mail List
>>>> [email protected]
>>>> http://pdml.net/mailman/listinfo/pdml_pdml.net
>>>> to UNSUBSCRIBE from the PDML, please visit the link directly
>>>> above and follow the directions.
>>>>
>>>>
>>>>         
>>> --
>>> PDML Pentax-Discuss Mail List
>>> [email protected]
>>> http://pdml.net/mailman/listinfo/pdml_pdml.net
>>> to UNSUBSCRIBE from the PDML, please visit the link 
>>>       
>> directly above and follow the directions.
>>     
>>
>> -- 
>> Equine Photography
>> www.caughtinmotion.com
>> http://brooksinthecountry.blogspot.com/
>> Ontario Canada
>>
>> -- 
>> PDML Pentax-Discuss Mail List
>> [email protected]
>> http://pdml.net/mailman/listinfo/pdml_pdml.net
>> to UNSUBSCRIBE from the PDML, please visit the link directly 
>> above and follow the directions.
>>
>>
>>     
>
>
>   


-- 
I am personally a member of the Cream of the Illuminati.
A union with the Bavarian Illuminati is contemplated.
When it is complete the Bavarian Cream Illuminati will rule the world
        -- Anonymous



-- 
PDML Pentax-Discuss Mail List
[email protected]
http://pdml.net/mailman/listinfo/pdml_pdml.net
to UNSUBSCRIBE from the PDML, please visit the link directly above and follow 
the directions.

Reply via email to