文件名被描述为文件的标题和文件扩展名。重命名文件时,仅更改文件名的第一部分。文件扩展名(file extension)保持不变,通常不会更改。如果您还需要更改文件扩展名,请选择整个文件并根据需要更改名称和扩展名。在这篇文章中,我们将学习如何在Windows 11和Windows 10中重命名文件或文件夹,以及这样做的各种方法。
如何在Windows 11/10文件(Files)和文件夹(Folders)
有多种方法可以重命名Windows 10中的文件或文件夹。它们如下所述:
- 使用上下文菜单 - 右键单击(Context Menu – Right-clicking)项目
- 使用属性
- 使用键盘快捷键 - Alt+Enter
- 使用键盘快捷键 - F2
- 在文件资源管理器中使用主菜单
- 通过两次单击
- 使用命令提示符
- 使用 PowerShell。
1]使用上下文菜单–右键单击(Using Context Menu – Right-clicking)该项目
选择要重命名的文件或文件夹,然后右键单击该项目。上下文菜单(Context Menu)将打开。
单击“重命名”(‘Rename’)选项并输入文件或文件夹的新名称,然后按 Enter(Enter)或单击屏幕上的其他任何位置。
2]使用属性
右键单击(Right-click)文件或文件夹,然后选择“属性”。(‘Properties’.)
属性(Properties)窗口将打开。在“常规(General)”选项卡中,输入新文件名,然后单击“确定(OK)” 。
3]Using Keyboard Shortcut – Alt+Enter
选择要重命名的文件,然后按Alt+Enter.
文件属性(File Properties)弹出窗口将打开。输入文件的新名称,然后单击“确定”。(OK.)
4]使用键盘快捷键 - F2
选择文件或文件夹,只需按 F2即可重命名该项目。
提示(TIP):如何批量重命名文件和文件扩展名。
5]在文件资源管理器中使用主菜单
要使用文件资源管理(File Explorer)器重命名,请选择该项目并单击“主页”。(‘Home’.)
此外,单击“重命名”(‘Rename’)选项并按照相同的步骤操作。
阅读(Read):重命名文件夹的技巧,立即按顺序排列文件。
6]通过两次单击
单击(Click)文件或文件夹两次。文件或文件夹名称将突出显示。
输入(Enter)文件的新名称,然后按Enter键保存。
阅读(Read):批量重命名文件的最佳免费批量文件重命名器软件(Bulk File Renamer software to Mass Rename files)。
7]使用命令提示符
命令提示符(Command Prompt)允许您使用ren命令重命名文件或文件夹。打开文件资源管理器(File Explorer)并转到目标文件或文件夹。接下来,单击地址栏并键入“cmd”,然后按Enter。使用以下语法:
ren file_path new_name
例如,这会将位于 D 驱动器上的名为fileA的文档重命名为(fileA)fileB。
ren d:\fileA.doc fileB.doc
8]使用PowerShell
打开文件或文件夹位置并在那里打开一个PowerShell窗口
使用重命名项目(rename-item)命令:
rename-item –path d:fileA –newname d:fileB
下面的命令将 Drive 上的文件夹fileA重命名为fileB。
提示(TIP):在Windows中,现在更容易重命名多个文件或文件夹。如果要重命名多个文件,在重命名第一个文件后,只需点击TAB按钮,您将被移至下一个内联文件或文件夹。因此,您可以立即重命名以下文件。
此外,Windows还具有一项更出色的功能。即使您启用了“显示文件扩展名”功能,重命名时它也不会突出显示文件类型扩展名。所以你更安全,因为在重命名时,你不会错误地更改或删除扩展名。
这些是我们可以在Windows 11/10中重命名文件或文件夹的各种方法。
现在阅读:(Now read)move Files and Folders in Windows 11/107 种方法。
How to rename Files or Folders in Windows 11/10
A file name is described as the title of the file and the file extensiоn. When you rename a file, оnly the first part of the file name is сhanged. 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 11 and Windows 10 and the various ways to do so.
How to rename Files and Folders in Windows 11/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.
TIP: In Windows, now, it’s even easier to rename multiple files or folders. If you want to rename multiple files, after renaming the first file, just tap the TAB button, and you’ll be moved on to the next in-line file or folder. You can thus immediately rename the following file.
Moreover, Windows also has one more nice feature. Even if you have the ‘show file extension’ feature enabled, it does not highlight the file type extension while renaming. So you are safer, as while renaming, you will not change or delete the extension by mistake.
These are the various ways in which we can rename a file or a folder in Windows 11/10.
Now read: 7 ways to move Files and Folders in Windows 11/10.