Hello,
I would like to put the command
exiftool "-FileName<CreateDate" -d %Y-%m-%d_%H-%M-%S%%-c.%%e [FileName] into a Arg-File.
I tried this
-FileName<CreateDate
-d
%Y-%m-%d_%H-%M-%S%%-c.%%e
How can I do this?
Also I would like to put the option -api largefilesupport=1 and the option #-charset filename=latin in my Arg-File.
What I tried is:
-charset filename=latin
-api
largefilesupport=1
Both toggles doesnt work.
Is there any help for me?
You have it exactly correct. It should work as long as your argfile is plain UTF-8 text.
If you are still having troubles, attach your argfile and we'll take a look.
- Phil
The Arg-File is UTF8. I get this error message
exiftool -@ rename.arg C:\temp\IMG_0760.jpg
Warning: Error opening file - argefilesupport=1
Error: File not found - argefilesupport=1
Warning: Error opening file - %Y-%m-%d_%H-%M-%S%%-c.%%e
Error: File not found - %Y-%m-%d_%H-%M-%S%%-c.%%e
Warning: New file name not allowed in Windows (contains ':') - C:/temp/IMG_0760.jpg
0 image files updated
3 files weren't updated due to errors
Quote from: Quant007 on January 28, 2020, 07:20:53 AM
Warning: Error opening file - argefilesupport=1
Error: File not found - argefilesupport=1
That error is obvious. You dropped the leading L in LargeFileSupport.
The second problem is that your
-d (dateFormat) option (https://exiftool.org/exiftool_pod.html#d-FMT--dateFormat) has a trailing space. That makes exiftool display a tag "d " (includes the space). Because
-d is no longer an option, it treats the date string as a file name. Remove any trailing spaces, add the L and your file should work.
Thanks for the answer.
Sorry, my mistake, I missed that l.
I also not checked the space after "d".
I made the changes, renaming works now, but I still get an error message:
Warning: Error opening file - largefilesupport=1
Error: File not found - largefilesupport=1
1 directories scanned
0 image files updated
22 image files unchanged
1 files weren't updated due to errors
-api largefilesupport=1 is not interpreted correctly
Can anyone offer an explanation for this?
Translated with www.DeepL.com/Translator (free version)
If you are getting this message, then the previous line in the config file can not be exactly "-api" (without the quotes). Try re-typing it. Either that, or you are using a very old version of Exiftool.
- Phil
I cant fix the error. I attached the file, can you have a look to this?
I use Exiftool 11.84
Ah. -p expects an argument, and this is eating the -api option. I think you mean -P (capital "P"). But this option will have no effect if just renaming the file, so you might as well just remove it.
- Phil