batch file and sub directories

Started by Archive, May 12, 2010, 08:54:07 AM

Previous topic - Next topic

Archive

[Originally posted by timflang on 2007-07-22 23:48:02-07]

Hello Phil and everyone else

I've managed to creat a load of command lines which have been placed into a batch file. When I put the following into a windows bat file I get an error stating "Can't open file: -r"

exiftool "-IPTC:Contact<EXIF:Artist" -L -overwrite_original_in_place -p -r TEST2

However when I type the above straight into XP dos without placing it in a batch file, it works. I'm clearly doing something wrong.

Also, is it possible to get the DateTime and place the Date into the IPTC DateCreated file and the time into the TimeCreated field. Currently I have done the following:

exiftool "-iptc:DateCreated<EXIF:datetime" -L -overwrite_original_in_place -r TEST2

exiftool "-iptc:TimeCreated<EXIF:datetime" -L -overwrite_original_in_place -r TEST2

Regards

Tim

Archive

[Originally posted by timflang on 2007-07-23 10:43:53-07]

Hello everyone

I realised that I needed to use an upper P, which is why it didn't work.

However I have another question. How does one take two fields and place them in a third. Currently I have the following but it doesn't work:

exiftool "-iptc:caption-abstract<filename+Comment" -L -overwrite_original_in_place -P -r TEST2

Regards

Tim

Archive

[Originally posted by exiftool on 2007-07-23 11:07:05-07]

Hi Tim,

Yes, and uppercase -P.  Your technique of setting the IPTC DateCreated
and TimeCreated will work, except there is no EXIF tag named DateTime.  Maybe
you mean CreateDate.

Try this:

Code:
exiftool "-iptc:caption-abstract<$filename $Comment" -L -overwrite_original_in_place -P -r TEST2

- Phil