#1 : 17/06-19 16:59 Jim Witherspoon
Posts: 14
|
I needed to rename about 180,000 jpg files to insert modification date info. I thought I might be able to do this using arenc.exe. I'm pretty sure I had the command line syntax right - it worked perfectly on a small selection of files. But when I tried it on a directory with the -s switch to rename all the .jpg files in the tree, the command could not complete. I was hoping that the files would be processed "one by one", without having to load all the filenames into memory at once.
The ReNamer GUI also choked on the large number of files. I was able to rename all the files using the xplorer2 mass rename wizard - but the new names are not exactly what I want because of inadequate date/time token support in xplorer2. So now I need to go back and rename all the files again. Is there a way to get arenc.exe to process this many files, without hanging up? |
#2 : 29/06-19 18:01 Shantastic
Posts: 1
|
Reply to #1:
I used a combination of a batch script and the mask function. I masked for *0.dng, for example, to process in batches of 1000ish. I did it with a counting loop, because all my files are in one folder. You could easily make the for loop run on something else like subfolders or whatever else makes sense to divide the files into smaller batches. To create the command line call, I used the tool within the Advanced Renamer GUI. ______ FOR /L %%G IN (0,1,9) DO ( "C:\Program Files (x86)\Advanced Renamer\arenc.exe" -e "<saved method list>" -t files -p "<photo folder>" -msk *%%G.dng -m rename -l "<log folder>\corr%%G log.log" ) pause ______ Hope this helps. |
#3 : 05/07-19 09:56 Kim Jensen
Administrator
Posts: 870 |
It is correct that Advanced Renamer will not work well with that many files. You will need to split it up in smaller parts.
|
#4 : 17/07-19 08:33 Jim Witherspoon
Posts: 14
|
Reply to #2:
Very clever solution! Thanks for the idea! |
#5 : 17/07-19 20:37 Jim Witherspoon
Posts: 14
|
Reply to #2:
I am using a FOR command to run ARENC.EXE in every subfolder, processing all the files in each subfolder, as follows: FOR /R "c:\tbexport\" %G in (.) DO "C:\Program Files (x86)\utility\file\rename\Advanced Renamer\arenc.exe" -e "C:\Users\jimsp\Dropbox\advanced renamer\reformat date from yyyymmdd-mmss to yyyy.mm.dd.mm.ss.aren" -p "%G" -r \d{8}-\d{4}-.*\.eml So far it is working ok, but since some of the folders have many thousands of files to be renamed, I don't know if it will choke on any of them. Here is some sample output from ARENC.EXE: C:\WINDOWS\system32>"C:\Program Files (x86)\utility\file\rename\Advanced Renamer\arenc.exe" -e "C:\Users\jim\Dropbox\advanced renamer\reformat date from yyyymmdd-mmss to yyyy.mm.dd.mm.ss.aren" -p "c:\tbexport\gmail - jimsp\samplefolder\messages\." -r \d{8}-\d{4}-.*\.eml Advanced Renamer 3.83 - 2019.07.17 1:28:24 PM Running batch Items: 414 files Methods: 5 - add, add, remove, add, add Batch mode: Rename *** Result: OK, "c:\tbexport\gmail - jimsp\samplefolder\messages\20110709-2107-_samplefilename.eml" -> "c:\tbexport\gmail - jimsp\samplefolder\messages\2011.07.09.21.07-samplefilename.eml" *** Batch ended OK: 414 Failed: 0 |