| Home | “From a list of file names and a list of corresponding new file names, create the contents of a DOS ‘.bat file’ which, when executed, will perform all of the desired renames.” |

Text Box 3 - Contents of DOS Batch (.bat) File for Performing the Renames
Text Box 4 - Contents of DOS Batch (.bat) File for "Undoing" the Renames

Utility: File Rename

(Tested using IE7, IE8, IE11 and Firefox 26)

Click  and then  to see an example of how this web page works.
Example: How to Rename MP3 Files

1. It is a very good idea to backup the files that you wish to rename, so that you can easily recover from accidentally renaming them improperly!

2. Click the  button above.

3. In the same folder as the files which are to be renamed, create a file called “go.bat,” by clicking File/New/Text Document.

4. Edit this empty file by right clicking it’s icon, and selecting “Edit.”

5. Enter the line: dir /b *.mp3 >dir.txt, and save the file.

6. Double click the go.bat icon. A file called “dir.txt” will then be created.

7. Double click the dir.txt icon, and copy/paste it’s contents into “Text Box 1” above. (There is no need to enter anything into “Text Box 2.”)

8. Click the  button in order to create the .bat file content in “Text Box 3.” Do not make any changes to the data contained in “Text Box 1!”

9. So far we have a .bat file content in “Text Box 3” which renames every file to the same name. This is not very useful, so to get a list of DOS rename (ren) commands which actually do something, either edit the contents of “Text Box 3” directly, or edit the file name list in “Text Box 2” and then click  again. The editing could be done by copy/pasting it into my “Super Text Editor” (http://llbest.com/?P=71).

10. Copy/paste the contents of “Text Box 3” into the previously created go.bat file, replacing the one line that it already contains, and then save it again.

11. Double click the go.bat file icon. This will cause the desired file renames to be performed.

12. If you don’t like the way in which the files were renamed, copy/paste the contents of “Text Box 4” into a new .bat file such as “undo.bat” and then double-click on it’s icon to restore all of the files to their original file names.

Questions, comments and suggestions are welcome.
Howard Charles Best ()

| Home | THIS WEB PAGE URL: http://LLBest.com/?P=1r |