Modifying a larger number of pictures in a batch will fail
alyaksander opened this issue · 1 comments
Version
- OS: Windows 10
- Version 22H2
- Package Windows Feature Experience Pack 1000.19056.1000.0
Describe the bug
I can't modify date and time to a larger number of files at once. I get the error:
IOException error
Cannot run program "C:/Users/alyak/Desktop/jExifTool/exiftool.exe": CreateProcess error=206, The filename or extension is too long
To Reproduce
Steps to reproduce the behavior:
- Select 1,000 or more pictures and go to "Date/Time" menu.
- Click on ''Modify Date/Time''.
- Set the dates/times you want and clock "Ok".
- Error will show.
With too many files the command line gets too long.
This bug has been mentioned before.
I personally never used more that approx. 50 files at a time.
I stopped development, but as it is open source, anyone can continue.
To resolve this issue the program should check the total length of the command line, compare it with the allowed length per operating system, and if longer than allowed, write the command line per image to a text file that can be used as input for exiftool.
Another option is if all files are in one folder, to do it folder based. In that way exiftool will act on a folder and what is in there, and not per file. This might also be be done via the command option.