
To do that, you’ll need to use a very simple, regular expression, “.*”, which means “everything.

This command just renames the existing file/folder and does not create a new file. Note that, with rename command, we can’t move the files to another drive or directory. G:data>mkdir dir1 G:data>dir /b dir1 G:data>rename dir1 dir2 G:data>dir /b dir2 G:data>. What if you don’t want to just replace a word in a file, but rather, you’d like to replace the entire filename with something completely new? In that case, you’d want a wildcard to match all of the files you’ve selected. We can use Rename command to rename directories too. Very handy! A Useful Example: Rename Every File to Something New If you don’t like the result, you can press Ctrl+Z in File Explorer to undo the rename process. When you’re ready, click the “Rename” button, and PowerRename will perform the operation you’ve specified. Item Extension Only: If checked, the operation will only apply to the file or folder’s extension and not its name.Item Name Only: If checked, the operation will only apply to the file or folder’s name and not its extension.Enumerate Items: This will add a number, counting upward, to the end of each file that is renamed.For example, if you select a directory that has files within sub-folders, those will not be affected. Exclude Subfolder Items: This excludes items in selected sub-folders from rename operations.Exclude Folders: If this is checked, the operation will only apply to files and not folders.Exclude Files: If this is checked, the operation will only apply to folders and not files.With this checked, all instances of the search term will be replaced. Match All Occurrences: Normally, only the first instance of the search term is replaced (from left to right).For example, the term “dog” would match different results than “Dog.” Case Sensitive: This option makes searches sensitive, whether the letters are capital or lowercase.

The renaming configuration needs to be made in AutoSplit using. Use Regular Expressions: This allows the use of powerful search strings known as regular expressions, which can enable very in-depth or complex search-and-replace operations. BAT files can be executed by by batch scheduling or hot-folder monitoring applications.Consider each one and place a checkmark beside those that you want to use.

Near the middle of the window, you’ll see other options that change how PowerRename works. That way, you don’t have to guess what the result might be. Here’s an example where “P4” in each file name has been replaced with “photo_.” The neat thing is that PowerRename provides a preview of what the renamed files will look like right there in the window.
