A file name is described as the title of the file and the file extension. When you rename a file, only the first part of the file name is changed. The file extension remains the same and usually, is not to be changed. In case, you need to change the file extension as well, select the entire file and change the name and the extension as desired. In this post, we will learn how to rename a file or a folder in Windows 10 and the various ways to do so.
How to rename Files and Folders in Windows 10
There are multiple ways to rename a file or folder in Windows 10. They are as mentioned below:
- Using Context Menu – Right clicking on the item
- Using Properties
- Using Keyboard Shortcut – Alt+Enter
- Using Keyboard Shortcut – F2
- Using Home Menu in File Explorer
- By Two Single Clicks
- Using Command Prompt
- Using PowerShell.
1] Using Context Menu – Right-clicking on the item
Select the file or folder you want to rename and right-click on that item. The Context Menu will open.
Click on the ‘Rename’ option and enter the new name of the file or folder, and then hit Enter or click anywhere else on the screen.
2] Using Properties
Right-click on the file or folder and select ‘Properties’.
The Properties window will open. In the General tab, enter the new file name and then click OK.
3] Using Keyboard Shortcut – Alt+Enter
Select the file you want to rename and simply press Alt+Enter.
The File Properties pop-up will open. Type in the new name of the file and click OK.
4] Using Keyboard Shortcut – F2
Select the file or folder and simply press F2 to rename the item.
TIP: How to batch rename files and file extensions.
5] Using Home Menu in File Explorer
To rename using File Explorer, select the item and click on ‘Home’.
Further, click on the ‘Rename’ option and follow the same steps.
Read: Trick to Rename folders, files in serial order instantly.
6] By Two Single Clicks
Click on the file or folder two single times. The file or folder name will get highlighted.
Enter the new name for the file and press the Enter key to save it.
Read: Best free Bulk File Renamer software to Mass Rename files.
7] Using Command Prompt
Command Prompt allows you to rename the files or folders using the ren command. Open the File Explorer and go to the destination file or folder. Next, click on the address bar and type “cmd”, and then press Enter. Use the following syntax:
ren file_path new_name
For example, this will rename the document named fileA located on D drive to fileB.
ren d:\fileA.doc fileB.doc
8] Using PowerShell
Open the file or folder location and open a PowerShell window there
Use the rename-item command:
rename-item –path d:fileA –newname d:fileB
The command below renames the folder fileA to fileB on Drive.
These are the various ways in which we can rename a file or a folder in Windows 10.
Now read: 7 ways to move Files and Folders in Windows 10.