![]() Select between four options to either convert items to be all lowercase, all uppercase, title case (first character of name is capitalized), or capitalize each word. By default, all subfolder items are included. Include subfoldersĭeselecting causes files within folders to not be included in the operation. Include foldersĭeselecting causes folders to not be included in the operation. Include filesĭeselecting causes files to not be included in the operation. Only the file extension is modified by the operation. Only the file name (not the file extension) is modified by the operation. Case matching will be insensitive (not recognizing a difference between upper and lowercase letters) by default. If checked, the text specified in the Search field will only match text in the items if the text is the same case. Match all occurrences checked: supertoys-superrename.txt.Match all occurrences unchecked: supertoys-powerrename.txt.The value of the renamed file would result in: Otherwise, only the first instance of the Search for text in the file name will be replaced (left to right).įor example, given the file name: powertoys-powerrename.txt: If checked, all matches of text in the Search field will be replaced with the Replace text. If not checked, the Search value will be interpreted as plain text to be replaced with the text in the Replace field.įor more information regarding the Use Boost library option in the settings menu for extended regex functionalities, see the regular expressions section. The Replace value can also contain regex variables (see examples below). If checked, the Search value will be interpreted as a regular expression (regex). You can view the original file name and renamed file name in the Preview window. Replace withĮnter text to replace the Search for value entered previously. ![]() You will see the matching items in the Preview window. ![]() The number of items you've selected will be displayed, along with search and replace values, a list of options, and a preview window displaying results of the search and replace values you've entered.Įnter text or a regular expression to find the files in your selection that contain the criteria matching your entry. Notice that the Explorer's "Undo Rename" (Ctrl+Z) command enables the ability to undo the last change.Īfter selecting files in Windows File Explorer, right-clicking and selecting PowerRename (which will appear only if enabled in PowerToys), the PowerRename window will appear. PowerRename enables a single bulk rename. Since all of the files are uniquely named, this would have taken a long time to complete manually one-by-one. In this demo, all instances of the file name "foo" are replaced with "foobar". Undo a rename operation after it is completed.Check expected rename results in a preview window before finalizing a bulk rename.Perform a regular expression rename on multiple files.Perform a search and replace on a targeted section of file names.Modify the file names of a large number of files, without giving all of the files the same name.I won't go into any more examples here, since the F2 wiki is well documented, and it includes various batch rename examples.PowerRename is a bulk renaming tool that enables you to: Notice that here I've used the -x flag, which applies the mass file renaming. | 007.mp3 | Tool - Fear Inoculum - 7 - 7empest.mp3 | ok | | 006.mp3 | Tool - Fear Inoculum - 6 - Chocolate Chip Trip.mp3 | ok | | 005.mp3 | Tool - Fear Inoculum - 5 - Culling Voices.mp3 | ok | | 004.mp3 | Tool - Fear Inoculum - 4 - Descending.mp3 | ok | | 003.mp3 | Tool - Fear Inoculum - 3 - Invincible.mp3 | ok | | 002.mp3 | Tool - Fear Inoculum - 2 - Pneuma.mp3 | ok | | 001.mp3 | Tool - Fear Inoculum - 1 - Fear Inoculum.mp3 | ok | To make batch renaming easier, F2 includes several built-in variables, like. In case the tool finds conflicts, like the target destination already existing, invalid characters in the target path, an empty filename, etc., it can automatically resolve them using the -fix-conficts / -F flag. ![]() To ensure that the rename operations are safe, F2 also runs several validations before carrying out a rename operation. The tool can show a preview of the new file and folder names (simply omit the -x command line flag, which is used to apply the changes), and it also supports undoing the last batch renaming operation in case you change your mind and want to revert the changes. Find and replace using regular expressions is also supported. The mass rename command line tool is fairly new, having its first stable release back in February 2021, but it's already quite mature, with features like string replacement, insertion of text as a prefix, suffix or other position in the file name, change the letter case, rename using auto-incremental numbers, and so on.
0 Comments
Leave a Reply. |