Batch to Rename Files

Saturday, February 26, 2011

Usually we rename files on windows computer by click right on the files or press F2 then type a new files name. In this basic tutorial, we try to do it with a batch commands.

CMD rename code:
RENAME [drive:][path]filename1 filename2
REN [drive:][path]filename1 filename2
you can use RENAME or REN code, example :
REN D:\oldFilesName.doc newFilesName.doc
Batch rename code:
@echo off
title Batch Renamer
ren D:\oldFilesName.doc newFilesName.doc
echo rename is done !
echo press any key to exit
pause>nul
after knowing this basic rename code, you can modify more expert code to make batch renamer tool, and I'll make it more smart renamer tool later. hope it's useful for you.