Main Menu

Overwriting in batch mode

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

Previous topic - Next topic

Archive

[Originally posted by palmandy on 2010-03-07 23:47:16.502142-08]

I copy files into a directory, convert to jpg and then move into directories based on date using exiftool. The script appears below. Occasionally there is a duplicate file so the jpg exists in root and in the directory structure. If a file exists then I get "files weren't updated due to errors". Is there anyway to get it to overwrite so the root directory is always cleaned out?    

Code:
=========================================
d:
cd \Remote_Backups\X-Ray\
nconvert -D -keepfiledate -out jpeg D:\Remote_Backups\X-Ray\Images\*.tif
cd images
D:\Remote_Backups\X-Ray\exiftool.exe "-Directory<FileModifyDate" -d "%%Y/%%m/%%Y-%%m-%%d" "*_G.jpg"
D:\Remote_Backups\X-Ray\exiftool.exe "-Directory<FileModifyDate" -d "%%Y/%%m/%%Y-%%m-%%d/rejects" "*_R.jpg"

Archive

[Originally posted by exiftool on 2010-03-08 05:08:49.665704-08]

You could try this to add a number to the name of duplicate files:

Code:
exiftool.exe "-filename<FileModifyDate" -d "%%Y/%%m/%%Y-%%m-%%d/%%%%f%%%%-c.%%%%e" "*_G.jpg"
- Phil

Archive

[Originally posted by palmandy on 2010-03-08 06:04:27.23501-08]

Phil,

Thanks for the quick reply! This works.

Andrew.