How to replace the file extensions of several files
It may be necessary to rename several file extensions to allow compatibility with another program. A good example where this could be used is renaming an ASP file to an HTM or HTML file. To rename files from the Windows command line open the command line and follow the below steps.
Use the below command at the MS-DOS or Windows command line or within a batch file.
xcopy *.shn *.wav
This would rename all files with .shn to .wav, while keeping the original files.
- See the xcopy command for further information about this command.
If you wish to rename the extensions without keeping the original file you can also use a command similar to the below example.
rename *.shn *.wav
- See the ren and rename command and xcopy command pages for further information about these commands.