通常,您可以按照以下步骤重命名Windows 10中文件夹内的文件:
- 右键单击(Right-click)要重命名的文件。
- 单击重命名(Rename )选项。
- 键入新文件名。
- 点击Enter按钮,文件名将被更改。
但是,上述方法可以应用于仅重命名文件夹内的一个或两个文件。但是,如果要重命名文件夹中的多个文件怎么办?使用上述方法将消耗大量时间,因为您必须手动重命名每个文件。您需要重命名的文件也可能有数千个。因此,使用上述方法重命名多个文件是不可行的。
因此,为了解决上述问题并节省时间,Windows 10 提供了不同的方法来简化重命名过程。
为此, Windows 10(Windows 10)中提供了各种第三方应用程序。但是,如果您不喜欢那些第三方应用程序, Windows 10还为同一进程提供了多种内置方法。(Windows 10)Windows 10中基本上提供了三种内置方式,您可以通过这些方式执行此操作,它们是:
- (Rename)使用文件资源管理(File Explorer)器重命名多个文件。
- (Rename)使用命令提示符(Command Prompt)重命名多个文件。
- (Rename)使用PowerShell(PowerShell)重命名多个文件。
如何在Windows 10上批量重命名(Bulk)多个文件(Multiple Files)
因此,让我们详细讨论它们中的每一个。最后,我们还讨论了两个用于重命名的第三方应用程序。
方法一:使用 Tab 键重命名多个文件(Method 1: Rename multiple files using the Tab key)
文件资源管理器(File Explorer)(以前称为Windows 资源管理器(Windows Explorer))是一个可以找到位于 PC 上不同位置的所有文件夹和文件的地方。
要使用Tab 键(Tab Key)重命名多个文件,请执行以下步骤:
1.从任务栏或桌面打开文件资源管理器。(File Explorer)
2. 打开要重命名文件的文件夹。(folder)
3. 选择第一个文件(first file)。
4. 按F2键重命名。您的文件名将被选中。
注意(Note):如果您的 F2 键还执行其他功能,请按Fn + F2键的组合。
注意(Note):您也可以通过右键单击第一个文件并选择重命名选项来执行上述步骤。将选择文件名。
5. 输入您要赋予该文件的新名称。(new name)
6. 单击Tab按钮,新名称将被保存,光标将自动移动到下一个要重命名的文件。
因此,按照上述方法,您只需为文件键入一个新名称并按Tab按钮,所有文件都将使用它们的新名称重命名。
方法 2:使用 Windows 10 文件资源管理器重命名多个文件(Method 2: Rename Multiple Files using Windows 10 File Explorer )
要在Windows 10(Windows 10) PC上批量重命名多个文件,请执行以下步骤:
注意(Note):如果您希望每个文件具有相同的文件名结构,则此方法适用。
1.从任务栏或桌面打开文件资源管理器。(File Explorer)
2. 打开要重命名文件的文件夹。
3. 选择您要重命名的所有文件。
4. 如果要重命名文件夹中的所有可用文件,请按Ctrl + A 键。
5. 如果要重命名随机文件,请单击要重命名的文件并按住Ctrl键。然后,一个一个地选择要重命名的其他文件,当所有文件都被选中后,松开Ctrl 按钮(Ctrl button)。( release the Ctrl button.)
6. 如果要重命名某个范围内的文件,请单击该范围内的第一个文件并按住Shift键,然后选择该范围内的最后一个文件,当所有文件都被选中时,松开 Shift 键.(release the Shift key.)
7. 按F2键重命名文件。
注意(Note):如果您的 F2 键还执行其他功能,请按Fn + F2键的组合。
8. 输入您选择的新名称(new name)。
9. 按Enter键。
所有选定的文件都将被重命名,并且所有文件都将具有相同的结构和名称。但是,为了区分这些文件,就像现在一样,所有文件都将具有相同的名称,您会注意到文件名后面的括号内有一个数字。每个文件的这个数字都不同,这将帮助您区分这些文件。示例(Example):新图像(New Image)(1)、新图像(New Image)(2) 等。
另请阅读:(Also Read:) 重命名 Windows 10 中的用户配置文件文件夹(Rename User Profile Folder in Windows 10)
方法 3:使用命令提示符批量重命名多个文件(Method 3: Rename Multiple Files in Bulk using the Command Prompt )
命令提示符(Command Prompt)还可用于在Windows 10中批量重命名多个文件。与其他方法相比,它更快。
1. 只需打开命令提示符(open the Command Prompt),然后到达包含要重命名的文件的文件夹。
2. 现在,使用cd(cd )命令访问包含要重命名的文件的文件夹。
3. 或者,您也可以导航到包含要重命名的文件的文件夹,然后通过在地址栏中键入 cmd 打开命令提示符。 (open the Command Prompt by typing cmd in the address bar. )
4. 现在,一旦打开命令提示符(Command Prompt),就可以使用ren命令(rename 命令)重命名多个文件:
任 “旧文件名.ext” “新文件名.ext”(Ren “Old-filename.ext” “New-filename.ext”)
注意(Note):如果您的文件名有空格,引号是必需的。否则,忽略它们。
5. 按Enter,然后您将看到文件现在已重命名为新名称。
注意(Note):上述方法将一个一个重命名文件。
6. 如果要一次重命名多个具有相同结构的文件,请在命令提示符(Command Prompt)中键入以下命令:
ren *.ext ???-Newfilename.*
注意(Note):这里,三个问号(???)表示所有文件将被重命名为您将给出的旧名称+新文件名的三个字符。所有文件都将具有旧名称和新名称的一部分,这对于所有文件都是相同的。因此,通过这种方式,您可以区分它们。
示例:(Example:)两个文件分别命名为 hello.jpg 和 sunset.jpg。您想将它们重命名为新的。因此,新文件名将是hel-new.jpg和sun-new.jpg
7.如果您要重命名的文件名称很长并且您想缩短它们的名称,那么您可以通过在命令提示符(Command Prompt)中使用以下命令来做到这一点:
ren *.* ?????.*
注意:(Note:)这里,问号表示需要使用多少个旧名称的字母来重命名文件。至少应使用五个字符。然后只有文件将被重命名。
8. 如果您想更改文件名而不是全名,只是其中的一部分,然后在命令提示符(Command Prompt)中使用以下命令:
ren old_part_of_file*.* new_part_of_file*.*
方法 4:使用 Powershell 批量重命名多个文件(Method 4: Rename Multiple Files in Bulk with Powershell)
PowerShell是Windows 10中的命令行工具,可在重命名多个文件时提供更大的灵活性,因此比命令提示符(Command Prompt)更强大。它允许以多种方式操作文件名,其中最重要的两个是命令Dir(列出当前目录中的文件)和Rename-Item(重命名文件项)。
要使用此PowerShell,首先,您需要按照以下步骤打开它:
1.从任务栏或桌面打开文件资源管理器。(File Explorer)
2. 打开要重命名的文件所在的文件夹。
3. 按Shift按钮并右键单击文件夹内的空白区域。
4. 单击在此处打开 PowerShell(Open PowerShell) 窗口(windows here )选项。
5.将出现Windows PowerShell。
6. 现在要重命名文件,在Windows PowerShell(Windows PowerShell)中键入以下命令:
重命名项目 “OldFileName.ext” “NewFileName.ext”(Rename-Item “OldFileName.ext” “NewFileName.ext”)
注意(Note):仅当文件名不包含任何空格时,您也可以键入不带引号的上述命令。
7. 点击Enter按钮。您现有的文件名将更改为新文件名。
注意(Note):使用上述方法,您只能一个一个地重命名每个文件。
8. 如果您想用相同的名称结构重命名文件夹中的所有文件,请在Windows PowerShell中键入以下命令。
Dir | %{Rename-Item $_ -NewName (“new_filename{0}.ext” –f $nr++)
例如,如果新文件名应为New_Image {0} 且扩展名为 jpg,则使用以下命令:
Dir | %{Rename-Item $_ -NewName (“New_Image{0}.jpg” –f $nr++)
9. 完成后,点击Enter按钮。
10. 现在,文件夹中所有扩展名为.jpg的文件都将被重命名。您会注意到所有文件名都以不同的数字结尾,以便您可以区分每个文件。
11. 如果您想通过缩短现有名称来重命名文件,请在Windows PowerShell中运行以下命令并点击Enter按钮:
Dir | Rename-Item –NewName {$_.name.substring(0,$_.BaseName.Length-N) + $_.Extension }
在上述命令中,($_.BaseNmae.Length-N)命令包含N,表示您需要从旧名称中删除或修剪多少个字符才能重命名文件。您需要将 N 更改为数值。 ( You need to change N with a numerical value. )
12. 如果要通过从文件名中删除某些部分来重命名文件,请在Windows PowerShell中键入以下命令并按Enter按钮:
Dir | Rename-Item –NewName {$_.name –replace “old_filename_part” , “”}
您将在olf_filename_part处输入的字符将从所有文件的名称中删除,并且您的文件将被重命名。
使用第三方应用程序批量重命名多个文件(Rename Multiple Files in Bulk using Third-party Applications)
您还可以使用第三方应用程序一次重命名多个文件。通常,两个第三方应用程序,批量重命名实用程序(Bulk Rename Utility)和AdvancedRenamer有利于批量重命名文件。
让我们详细了解这些应用程序。
1. 使用批量重命名实用程序应用程序(1. Using the Bulk Rename Utility application)
Bulk Rename Utility工具可免费用于个人和非商业用途。要使用此工具,首先,您需要安装它。安装后,打开它并找到要更改名称的文件并选择它们。
现在,更改多个可用面板中的一个或多个中的选项,所有这些都将以橙色突出显示。您的更改预览将出现在列出所有文件的“新名称”(New Name)列中。
我们对四个面板进行了更改,因此它们现在出现在橙色阴影中。对新名称感到满意后,点击重命名(Rename)选项重命名文件名。
2. 使用 AdvancedRenamer 应用程序(2. Using the AdvancedRenamer application)
AdvancedRenamer 应用程序(AdvancedRenamer application)要简单得多,具有简化的界面和各种选项,可以轻松地重命名多个文件,并且更加灵活。
要使用此应用程序一次重命名多个文件,请按照下列步骤操作。
一种。首先(First),安装应用程序,启动它,然后选择要重命名的文件。
湾。在“文件名”(File Name)字段中,输入重命名每个文件时要遵循的语法:
Word File_<Year>_<Month>_<Day>_(<Inc Nr:1>)。
C。应用程序将使用上述语法重命名所有文件。
受到推崇的:(Recommended:)
因此,使用上述方法,您可以一次批量重命名多个文件,(rename multiple files in bulk at once)而无需单独移动到每个文件名。但是,如果您对本教程仍有任何疑问,请随时在评论部分提出。
How to Rename Multiple Files in Bulk on Windows 10
Normally, you can rename a file inside a folder in Windows 10 by following these steps:
- Right-click on the file you want to rename.
- Click on the Rename option.
- Type the new file name.
- Hit the Enter button and the file name will get changed.
However, the above method can be applied to rename only one or two files inside a folder. But what if you want to rename multiple files in a folder? Using the above method will consume lots of time as you will have to manually rename each file. It is also possible that the files you need to rename maybe thousands in number. So, it is not feasible to use the above method for renaming multiple files.
So, to solve the above problem and save time, Windows 10 comes with different ways by which you can make the renaming process easier.
For this, there are various third-party apps available in Windows 10. But, Windows 10 also provides several built-in methods for the same process if you do not prefer those third-party apps. There are basically three in-built ways available in Windows 10 by which you can do so and these are:
- Rename multiple files using the File Explorer.
- Rename multiple files using the Command Prompt.
- Rename multiple files with PowerShell.
How to Rename Multiple Files in Bulk on Windows 10
So, let us discuss each of them in detail. In the end, we have also discussed two third-party applications for the renaming purpose.
Method 1: Rename multiple files using the Tab key
File Explorer (previously known as the Windows Explorer) is a place where you can find all the folders and files that are available at different locations on your PC.
To rename multiple files using the Tab Key, follow these steps:
1. Open the File Explorer either from the taskbar or the desktop.
2. Open the folder whose files you want to rename.
3. Select the first file.
4. Press the F2 key to rename it. Your file name will be selected.
Note: If your F2 key performs some other function also, then press the combination of the Fn + F2 key.
Note: You can also perform the above step by right-clicking on the first file and selecting the rename option. The file name will be selected.
5. Type the new name you want to give to that file.
6. Click on the Tab button so that the new name will be saved and the cursor will automatically move to the next file to rename.
So, by following the above method, you just have to type a new name for the file and press the Tab button and all the files will be renamed with their new names.
Method 2: Rename Multiple Files using Windows 10 File Explorer
To rename multiple files in bulk on Windows 10 PC, follow these steps:
Note: This method is applicable if you want the same file name structure for every file.
1. Open the File Explorer either from the taskbar or the desktop.
2. Open the folder whose files you want to rename.
3. Select all the files you want to rename.
4. If you want to rename all the files available in the folder, press the Ctrl + A key.
5. If you want to rename random files, click on the file you want to rename and press and hold the Ctrl key. Then, one by one, select the other files you want to rename and when all the files are selected, release the Ctrl button.
6. If you want to rename the files present inside a range, click on the first file of that range and press and hold the Shift key and then, select the last file of that range and when all files are selected, release the Shift key.
7. Press the F2 key to rename the files.
Note: If your F2 key performs some other function also, then press the combination of the Fn + F2 key.
8. Type the new name of your choice.
9. Hit the Enter key.
All the selected files will be renamed and all the files will have the same structure and name. However, to differentiate between these files, as now, all the files will have the same name, you will notice a number inside the parentheses after the name of the file. This number is different for each file which will help you in differentiating between these files. Example: New Image (1), New Image (2), etc.
Also Read: Rename User Profile Folder in Windows 10
Method 3: Rename Multiple Files in Bulk using the Command Prompt
Command Prompt can also be used to rename multiple files in bulk in Windows 10. It is faster as compared to the other methods.
1. Simply, open the Command Prompt and then reach the folder containing the files you want to rename.
2. Now, reach the folder containing the files you want to rename using the cd command.
3. Alternatively, you can also navigate to the folder containing the files you want to rename and then, open the Command Prompt by typing cmd in the address bar.
4. Now, once the Command Prompt is open, you can use the ren command (the rename command) to rename multiple files:
Ren “Old-filename.ext” “New-filename.ext”
Note: Quotation marks are necessary if your file name has space. Otherwise, ignore them.
5. Press Enter and then you will see that the files have now been renamed to the new name.
Note: The above method will rename the files one by one.
6. If you want to rename multiple files at once with the same structure, type the below command in the Command Prompt:
ren *.ext ???-Newfilename.*
Note: Here, the three question marks (???) show that all the files will be renamed as three characters of the old name+new filename which you will give. All the files will have some part of the old name and new name which will be the same for all the files. So in this way, you can distinguish between them.
Example: Two files are named as hello.jpg and sunset.jpg. You want to rename them as new. So, the new filename will be hel-new.jpg and sun-new.jpg
7. If the files you want to rename have long names and you want to shorten their name, then you can do so by using the below command in the Command Prompt:
ren *.* ?????.*
Note: Here, the question marks show how many alphabets of the old name need to be used to rename the file. A minimum of five characters should be used. Then only the file will be renamed.
8. If you want to change the file name but not the whole name, just some part of it, then use the below command in the Command Prompt:
ren old_part_of_file*.* new_part_of_file*.*
Method 4: Rename Multiple Files in Bulk with Powershell
PowerShell is a command-line tool in Windows 10 that provides more flexibility while renaming multiple files and thus, is more powerful than the Command Prompt. It allows manipulating the file names in several ways out of which the two most important ones are the commands Dir (which lists the files in the current directory) and Rename-Item (which renames an item that is the file).
To use this PowerShell, first, you need to open it by following these steps:
1. Open the File Explorer either from the taskbar or the desktop.
2. Open the folder where the files you wish to rename reside.
3. Press the Shift button and right-click on the empty space inside the folder.
4. Click on the Open PowerShell windows here option.
5. The Windows PowerShell will appear.
6. Now to rename the files, type the below command in the Windows PowerShell:
Rename-Item “OldFileName.ext” “NewFileName.ext”
Note: You can also type the above command without the quotation marks only if the file name does not contain any space(s).
7. Hit the Enter button. Your existing file name will change to the new one.
Note: By using the above method, you can only rename each file one by one.
8. If you want to rename all the files of the folder by the same name structure, type the below command in the Windows PowerShell.
Dir | %{Rename-Item $_ -NewName (“new_filename{0}.ext” –f $nr++)
Example if the new file name should be New_Image{0} and the extension is jpg then use the following command:
Dir | %{Rename-Item $_ -NewName (“New_Image{0}.jpg” –f $nr++)
9. Once done, hit the Enter button.
10. Now, all the files in the folder having the .jpg extension will be renamed. You will notice that all the file names will end with different numbers so that you can differentiate between each file.
11. If you want to rename the files by making their existing name shorter, then run the below command in the Windows PowerShell and hit the Enter button:
Dir | Rename-Item –NewName {$_.name.substring(0,$_.BaseName.Length-N) + $_.Extension }
In the above command, ($_.BaseNmae.Length-N) command contains N which indicates how many characters you need to remove or trim from the old name to rename the file. You need to change N with a numerical value.
12. If you want to rename the files by removing some parts from the file names, then type the below command in the Windows PowerShell and hit the Enter button:
Dir | Rename-Item –NewName {$_.name –replace “old_filename_part” , “”}
The characters you will enter at the place of the olf_filename_part will be removed from the names of all the files and your files will be renamed.
Rename Multiple Files in Bulk using Third-party Applications
You can also use third-party applications for renaming multiple files at once. Generally, two third-party applications, the Bulk Rename Utility and AdvancedRenamer are beneficial for renaming files in bulk.
Let us learn more about these apps in detail.
1. Using the Bulk Rename Utility application
Bulk Rename Utility tool is free for personal and non-commercial use. To use this tool, first, you need to install it. After installing, open it and reach the files whose names are to be changed and select them.
Now, change the options in one or more of the many available panels and all these will be highlighted in the orange colour. The preview of your changes will appear in the New Name column where all your files are listed.
We made changes in four panels so they are now appearing in the orange shade. After you are satisfied with the new names, hit the Rename option to rename the file names.
2. Using the AdvancedRenamer application
The AdvancedRenamer application is much simpler, has a simplified interface with various options to rename multiple files easily, and is more flexible.
To use this application to rename multiple files at once, follow these steps.
a. First, install the application, launch it, and select the files to be renamed.
b. In the File Name field, enter the syntax you want to be followed for renaming each file:
Word File_<Year>_<Month>_<Day>_(<Inc Nr:1>).
c. The application will rename all the files using the above syntax.
Recommended:
So, using the above methods you can rename multiple files in bulk at once without moving to each filename individually. But if you still have any questions regarding this tutorial then feel free to ask them in the comment section.