As the title says, I'm hoping to have all my successful writes in a giant (200k+ assorted files) batch moved to a new "success" folder while maintaining the original subfolder structures. I was getting stray errors from random files and would like to be able to address them individually after the majority has been successfully written without having to track them all down amongst the written files.
G:\images\ref\figure\test.jpg
G:\images\ref\nature\test2.jpg
to
G:\success\ref\figure\test.jpg
G:\success\ref\nature\test2.jpg
... and the error files are just left in their original folders.
I tried something like -o \success\%d
but got...
Error creating file: C:/Users/nick/Desktop/EXIFTEST/success/C:/Users/nick/Desktop/EXIFTEST/folder
I'm a small fish swimming in a big pond here, haha (don't even really understand why \ and / are used differently). Apologies if my solution is obvious.
I assume this process might destroy a lot of Created Date or Modified Date data for the folders? Not sure but if there's any simple way to also preserve that sort of data, I'm all ears.
I was using -overwrite_original_in_place to preserve as much data as possible. I'm just trying to scrub these images of keywords, comments, and other similar tags, but I'd like to address these error files somehow and am willing to sacrifice some folder date data if it's necessary.
Perhaps a way to move error files into a new folder with old subfolder structure?
Thanks in advance!
If you really want to move the files, you could use -o %d/success
This will create a subdirectory call "success" for the files that didn't have errors.
But you can just list the files with errors like this: -efile errors.txt
With the -efile option, the names of all files with errors will be saved to the specified text file. Read about the -efile option in the application documentation for more details.
- Phil
Thanks for your reply.
I did manage that in my tests but I have 1800 folders in this reference library so that would end up with 1800 new success folders I'd have to eventually un-make. -efile seems the next best option if I can figure a way to use that list to batch move files out into a separate destination, subfolders intact.
Is there a way to get %d to be just
/ref/figure/
instead of the whole
G:/images/ref/figure/
Like if I run exiftool.exe from the /images/ folder? -o success/%d would work perfectly for my use if so.
Quote from: nickwannn on March 12, 2021, 12:37:39 PM
Is there a way to get %d to be just
/ref/figure/
instead of the whole
G:/images/ref/figure/
See the Advanced features under the
-w (
-TextOut) option (https://exiftool.org/exiftool_pod.html#w-EXT-or-FMT--textOut). Try some variation of
%:2d to ignore the top two levels. I'd suggest using the
TestName tag to verify the process.