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.