Steps to Rename Files and Folders Using CMD
Let’s go through a quick walkthrough of the steps involved in renaming files in cmd:
Step 1: Opening CMD
To rename a file in the command prompt, open CMD by pressing both ‘Windows’ as well as ‘R’ on your keyboard simultaneously then open up the ‘Run’ Eradication Box through which type “cmd” and click the OK key thus opening the Command Prompt window.
Step 2: Getting to the Directory- using the ‘cd’ Command
When you have the CMD window open, go to the directory where the file or folder that you want to rename is located. You can make this possible by using the ‘cd’ command plus the path to the directory. For example, should the file be found under the ‘Documents’ folder type ‘cd Documents’ then hit ‘Enter’.”
Step 3: Renaming Files and Folders – The ‘ren’ Command
You can use the command ‘ren’ for moving files. Let’s say we have a folder with the old name ‘Miss_named’ which we want to rename as ‘CorrectFolder’ using the command ‘ren Miss_named CorrectFolder’. For changing the name of any document or directory through the prompt type ‘ren oldname newname’ where the original filename/foldername (oldname) goes before space in single quotes followed by spaces and then what you would like it to be referred to as (newname) also in single quotes once more before hitting Enter on your keyboard.
Step 4: Renaming Multiple Files – using Wildcard Characters
By using CMD, the renaming of multiple files simultaneously is possible. You can do that by using the wildcard character ‘*’. A good example would be when you have files in numerical order which look like ‘file1.txt’, and ‘file2.txt’ thereby having a file name beginning with “file” followed by numbers. If one wanted them within this order changed to have doc instead for example doc1.doc doc2.doc he/ she would type in ren file*.txt doc*.txt.
How to Rename Files and Folders Using CMD?
Naming files and folders properly is one of the best ways through which you can organize them. We have always renamed files using File Explorer, but did you know that folders can also be renamed via the CMD command?
Everyone knows how to rename a file using File Explorer, however, did you know you can change the name of your files or folders too with the help of CMD instead of using the GUI?
So, in this article, we learn just: how to rename files using the command prompt, easily.
Contact Us