ren or rename |
Use ren to rename any single file or directory, or even several files at once via wildcards, * and ? . The syntax is:
ren [ filename1 ] [ filename2 ]
where filename1 is the name of the existing object, and filename2 is the new name to assign.
rename myfile.txt file.txt ren "chap 5.doc" "sect 5.doc" ren chap?5.doc sect?5.doc ren chap*.doc revchap*.doc ren *.htm *.html