jnrmonkey.blogg.se

Bulk rename files
Bulk rename files





bulk rename files

Note that in my case, I had 2 delimiters (a dash and a dot). The tokens are the "parts" of the filename, the delims are the separators. Note that when doing it this way, ALL parts of the filename are considered, including the extension of ".csv". To do this en-masse, I used the following code. I wanted the file date portion to be in y/m/d order, with the "name" part at the end so it would read like this: -name.csv In my case, I started out with a list of files named like so: name-01-02-2012.csv Like zdan, I output the list to a TXT file, then used tokens and delims to rename the files accordingly. It took some tinkering for my particular case, but a little research solved it. Like above, I did this by command line (using "cmd.exe" in Windows).







Bulk rename files