Rename a Group of Files

Rename a Group of Files

With the wildcard character *, we can also use the RENAME command to change a group of files.

 
Directions:
1. Type: ren *.ltr *.bob and press Enter.
2. Type: dir *.bob and press Enter.
3. You should have two files listed with a .bob extension.
4. Type: dir *.ltr and press Enter.
5. There should be no files found with .ltr extensions.
 
NOTE:
We can also rename a group of files that have the same name but different extensions. Type the RENAME command then the filename followed by the dot and the wildcard, space and then type the new filename followed by a dot and the wildcard character. It will look like this: filename.* newfilename.*