1.

How To Shut Down And Restart The Computer With A Batch File?

Answer»

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 HTML file.

Renaming in MS-DOS and the Windows COMMAND line: To rename file extensions from the Windows command line open the command prompt and follow the steps below.

Rename a file extension KEEPING the original: Use the below command at the MS-DOS or Windows command line or within a batch file.

xcopy *.shn *.wav

USING a wildcard allows you to rename all files with .shn to a .wav, while keeping the original files and extensions.

See the xcopy command for further information about this command.

Rename and replace files with a file extension: If you want to rename the extensions without keeping the original file, you can also use a command similar to the example below.

rename *.shn *.wav

See the ren and rename command and xcopy command pages for further information about these commands.

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 HTML file.

Renaming in MS-DOS and the Windows command line: To rename file extensions from the Windows command line open the command prompt and follow the steps below.

Rename a file extension keeping the original: Use the below command at the MS-DOS or Windows command line or within a batch file.

xcopy *.shn *.wav

Using a wildcard allows you to rename all files with .shn to a .wav, while keeping the original files and extensions.

See the xcopy command for further information about this command.

Rename and replace files with a file extension: If you want to rename the extensions without keeping the original file, you can also use a command similar to the example below.

rename *.shn *.wav

See the ren and rename command and xcopy command pages for further information about these commands.



Discussion

No Comment Found