6/24/2023 0 Comments Bulk rename tool![]() Parser. Help='Top folder for the replacement operation', ![]() Parser = argparse.ArgumentParser(description='Recursive file name renaming with regex support') I use it every single day to organize bounces, project folders, loose samples, and so on. There are other tools like this, but for me, this tool excels in it's balance between immediate usability, while still having fairly deep customizations. For the uninitiated, PowerToys is a freeware from Microsoft with a host of system utilities to help you customize. # (assuming two digits at the beginning and a 3 character extension I wanted to share one of my favorite organizational tools. Another bulk renaming method that works on Windows 10 involves using PowerToys. Commander is an excellent tool for many things, especially at bulk renaming. ![]() You will get a preview of how the new names will appear once you decide to rename those files. FreeCommander, select files, F2, in Pattern - File name field type: c, Counter start at / step by: 1, Digits: 3, Enter or click the Rename button. Interface This will get us to the Multi-Rename Tool dialog window like the following: On top we see a table with the files we've selected from source panel, one file per row, and about to be renamed. # rename "12-lovely-spam.txt" to "lovely-spam-12.txt" The Bulk Rename Utility provides a powerful interface from which you can select on how to rename your files. the main menu Files > Multi-Rename Tool with the internal command cmMultiRename (back to top) 2. \1, \2 etc) are supported too: # rename "spam.txt" to "spam-spam-spam.py" # only replace 'foo' at the beginning of the filename Simplest usage: # replace all occurences of 'foo' with 'bar' Use -w to actually write changes when you are satisfied with the dry run result, -s to suppress displaying non-matching files -h or -help will show usage notes. ![]() My take on a friendly recursive regex file name renamer which by default only emulates the replacement and shows what the resulting file names would be. ![]()
0 Comments
Leave a Reply. |