For a file, there are two important components. First there is the file name and next is the file type (or the extension). So a file named support.doc will have the file name as “support” while it’s type as “doc” (MS Word format or any compatible document format).
It can be useful to know how to use the Windows command prompt to directly rename files and change their extensions.
For changing file names (renaming files):Â
Suppose a file named afile.txt needs to be renamed to newfile.txt. This can be quickly accomplished through Windows command prompt.
To do this :
Open the command prompt and give the following command :
In this case, it would be :
The old file will be renamed and it’s old name will no longer exist.
For changing file type (file extension) :
Now, say the file type (file extension) needs to be changed, say from a .txt to .xls (text file to Excel document), then the command will still be the same, just the extension will differ :
In this case, file name needs to be the same, just the extension will be changed, so :
Isn’t this powerful and simple, just like all command line tools either in Windows or Linux?