

The above command will move the files new.txt and test.txt into the c:\example folder. There are two general approaches to batch file renaming: it can be done either via the command-line interface or by using a standalone application. To change the extension of a bunch of files, use the following syntax. Or, to convert lowercase to uppercase: rename 'y/a-z/A-Z/'. This command will rename uppercase files to lowercase. The above command will move the files of c:\windows\temp to the temp directory in root. The -v (verbose) option will print the names of files that have been successfully renamed. You can also find an entry for the bulk rename option in the Edit menu option. Let’s look at some examples of renaming files. To invoke the bulk rename tool, select multiple files and hit key. Suppresses prompting to confirm you want to overwrite an existing destination file.Ĭauses prompting to confirm you want to overwrite an existing destination file. As earlier stated, the rename command is used for renaming a batch of files, more specifically changing the file extension of multiple files simultaneously. Specifies the directory you want to rename. If you are moving only one file, you can also include a filename if you want to rename the file when you move it. Destination can consist of a drive letter and colon, a directory name, or a combination. Specifies the location and name of the file or files you want to move MOVE filename1 destinationįollowing are the description of the options which can be presented to the DEL command.

For moving files, Batch Script provides the MOVE command.
