如果您有一堆文件要重命名,手动重命名它们会太耗时。节省时间的一种方法是在Windows 10 PC上批量重命名文件。(batch rename your files)有内置功能以及第三方工具可以在Windows计算机上批量重命名文件。
每种方法都提供了一种独特的方式来重命名您的文件。例如,文件资源管理器(File Explorer)可帮助您快速重命名文件,但功能有限。命令提示符(Command Prompt)提供了更多功能,但并不容易使用。
在 Windows 10 中使用文件资源管理器批量重命名文件(Use File Explorer To Batch Rename Files In Windows 10)
如果您只想在您的机器上查找基本的重命名文件,则无需安装任何应用程序。内置的重命名功能也有助于批量重命名文件(bulk rename files),您可以从上下文菜单中使用它。
- 将所有要命名的文件放在一个文件夹中。
- 使用文件资源管理器(File Explorer)打开包含您的文件的文件夹。
- 选择(Select)要批量重命名的所有文件。要按顺序选择多个文件,请单击列表中的第一个文件,按住Shift 键(Shift),然后单击最后一个文件。第一个和最后一个文件之间的所有文件都将被选中。要不按顺序选择多个文件,请选择一个文件,然后按住Ctrl并单击要选择的文件。
- 右键单击任何一个文件,然后从屏幕上的上下文菜单中选择重命名。(Rename)
- 所选文件之一的名称将变为可编辑。为您选择的所有文件键入您想要的新名称,然后按Enter。
- 您选择的所有文件现在都将具有您的新名称。每个文件名旁边都会有一个数字,以相互区分。
- 如果重命名文件时出错,请按Ctrl + Z,文件名更改将恢复。
在 Windows 10 中使用命令提示符批量重命名文件(Batch Rename Files Using Command Prompt In Windows 10)
如果您想要更多选项来批量重命名 PC 上的文件,您可以使用命令提示符(use the Command Prompt)。它允许您使用类似的字符?和 * 选择和重命名您的文件。这为您提供了多种文件重命名方法,例如:
- 重命名具有特定扩展名的文件。
- 无需单击并选择文件夹中的每个文件。
- 为您的文件批量更改扩展名(Bulk change extensions for your files)。
- 您可以编写一个脚本来自动重命名您的文件。
ren或rename命令可以在Windows上批量重命名文件。
- 使用Cortana 搜索搜索(Cortana search)命令提示符(Command Prompt)并启动它。
- 键入以下内容以将当前工作目录更改为文件所在的位置。
cd <folder-path>
- 要重命名所有文件并为其名称添加后缀,例如Mahesh,您可以使用以下命令。
rename *.* ??????????????????????-Mahesh.*
以下是命令中每个参数的含义:
rename – 这是允许您重命名文件的命令从命令提示符(Command Prompt)。
*.* - 这将选择当前文件夹中的所有文件。
??????????????????????-Mahesh.* – 问号表示文件的原始名称,Mahesh是您要添加的新词,而*最后保持文件扩展名与以前相同。
- 要更改文件的扩展名,例如从JPG到PNG,您可以使用以下命令。
rename *.jpg *.png
使用此命令批量重命名文件的可能性是无穷无尽的。
在 Windows 10 中使用 PowerShell 一次重命名多个文件(Rename Multiple Files At Once Using PowerShell In Windows 10)
如果您更喜欢 PowerShell(If you prefer PowerShell)来运行命令,可以在 Windows 10 计算机上一次重命名单个或多个文件的命令。此命令比命令提示符(Command Prompt one)复杂一点,但具有更多功能。
下面演示了如何将所有文件名中的单词John替换为Mike。
- 使用Cortana搜索搜索Windows PowerShell并将其打开。
- 在PowerShell(PowerShell)中运行以下命令以访问文件所在的目录。
cd <path>
- 在PowerShell(PowerShell)中键入以下命令,然后按Enter。这将在您选择的文件夹中的所有文件中将John替换为Mike。
dir | rename-item -NewName {$_.name -replace “John”,”Mike”}
- 您可能会收到错误消息,但应更改所有文件名。
- 您可以使用许多命名变体与此命令一起为文件提供各种类型的名称。
在 Windows 10 中使用 PowerToys 批量重命名文件(Use PowerToys To Batch Rename Files In Windows 10)
Microsoft有一套名为PowerToys的工具,其中一个工具是PowerRename。此工具可让您在 PC 上使用许多高级选项批量重命名文件。
当您安装它时,它会被添加到上下文菜单中,因此您可以快速轻松地重命名文件。
- 前往GitHub 上(GitHub)的PowerToys页面,将最新版本下载到您的计算机上。
- 在您的计算机上安装PowerToys 。
- 使用文件资源管理器(File Explorer)打开文件所在的文件夹。
- 选择要重命名的文件。
- 右键单击任何一个文件并选择PowerRename。
- 您会看到许多用于重命名文件的选项。
在 Windows 10 中使用批量重命名实用程序批量重命名文件(Batch Rename Files With Bulk Rename Utility In Windows 10)
批量重命名实用程序(Bulk Rename Utility)是一个免费工具,可使用计算机上的各种选项重命名多个文件。它具有重命名文件的单界面方法,并包含您的任务所需的大多数选项。
- 在您的 PC 上下载并安装批量重命名实用程序。(Bulk Rename Utility)
- 在您的计算机上启动批量重命名实用程序(Bulk Rename Utility)。
- 使用左侧部分的选项选择文件所在的文件夹。
- (Select)在右侧部分选择要重命名的所有文件。
- (Use)根据您希望如何在界面上重命名文件,使用各种选项。
- 单击右下角的预览以查看新选择的名称在文件上的外观。(Preview)
- 单击重命名(Rename)以实际重命名您的文件。
在 Windows 10 中使用 Rename Master 批量重命名文件(Use Rename Master To Bulk Rename Files In Windows 10)
Rename Master 是另一个免费工具(free tool),可在 PC 上批量重命名文件。
- 在您的机器上下载并安装Rename Master 。
- 打开工具。
- 从右侧窗格中选择您的文件和文件夹。
- 单击重命名脚本(Renaming Script)选项卡并选择一个或多个选项来重命名文件。
- 单击重命名(Rename)开始重命名文件。
您还可以使用自定义脚本批量重命名(use a custom script to bulk rename files)Windows 10 PC 上的文件。
您最喜欢在 Windows 10 计算机上一次重命名多个文件的方法是什么?它是文件资源管理器(File Explorer)还是其他方法之一?请在下面的评论中告诉我们。
How To Batch Rename Files In Windows 10
If you havе a bunch of filеs to rename, manually renaming them would be too time-consuming. One way to save time is to batch rename your files on your Windows 10 PC. There are both built-in features as well as third-party tools to bulk rename files on a Windows computer.
Each method offers a unique way to rename your files. For example, File Explorer helps you quickly rename files but with limited features. The Command Prompt provides a few more features but is not as easy to use.
Use File Explorer To Batch Rename Files In Windows 10
If you’re only looking to basic rename files on your machine, you don’t need to install any apps. The built-in rename feature helps bulk rename files as well and you can use it from the context menu.
- Put all the files that you want to give a new name in a single folder.
- Open the folder containing your files using File Explorer.
- Select all the files that you want to batch rename. To select multiple files in an order, click the first file in the list, hold Shift, and click the last file. All the files between the first and the last file will get selected. To select multiple files in no order, select one file and then hold Ctrl and click the files that you want to select.
- Right-click any one file and select Rename from the context menu on your screen.
- The name of one of the selected files will become editable. Type the new name you want for all your chosen files and press Enter.
- All your chosen files will now have your new name. There will be a number next to each file name to differentiate from one another.
- If you made a mistake renaming files, press Ctrl + Z and the file name change will revert back.
Batch Rename Files Using Command Prompt In Windows 10
If you want more options to batch rename files on your PC, you can use the Command Prompt. It allows you to use characters like ? and * to select and rename your files. This gives you many ways to for file renaming like:
- Rename files with a certain extension.
- No need to click and select each file in the folder.
- Bulk change extensions for your files.
- You can write a script to automatically rename your files.
The ren or rename command makes batch renaming files possible on Windows.
- Search for Command Prompt using Cortana search and launch it.
- Type the following to change the current working directory to where your files are.
cd <folder-path>
- To rename all your files and add a suffix to their names, say Mahesh, you can use the following command.
rename *.* ??????????????????????-Mahesh.*
Here’s what each parameter in the command means:
rename – this is the command that lets you rename files from Command Prompt.
*.* – this selects all files in the current folder.
??????????????????????-Mahesh.* – the question marks denote the original names of the files, Mahesh is the new word you want to add, and the * at the end keeps the file extension the same as before.
- To change extensions of your files, say from JPG to PNG, you can use the following command.
rename *.jpg *.png
The possibilities to batch rename files with this command are endless.
Rename Multiple Files At Once Using PowerShell In Windows 10
If you prefer PowerShell to run commands, there’s a command to rename single or multiple files at once on your Windows 10 computer. This command is a bit more complex than the Command Prompt one but has more features.
The following demonstrates how you replace the word John with Mike in all your file names.
- Use the Cortana search to search for Windows PowerShell and open it.
- Run the following command in PowerShell to get to the directory where your files are located.
cd <path>
- Type the following command into PowerShell and press Enter. This’ll replace John with Mike in all files in your chosen folder.
dir | rename-item -NewName {$_.name -replace “John”,”Mike”}
- You might get an error but all your file names should be changed.
- There are numerous naming varieties you can use with this command to give various types of names to your files.
Use PowerToys To Batch Rename Files In Windows 10
Microsoft has a suite of tools called PowerToys and one of these tools is PowerRename. This tool lets you batch rename files with many advanced options on your PC.
It gets added to the context menu when you install it so you can quickly and easily rename your files.
- Head over to the PowerToys page on GitHub and download the latest release to your computer.
- Install PowerToys on your computer.
- Use File Explorer to open the folder where your files are located.
- Select the files you want to rename.
- Right-click any one file and choose PowerRename.
- You’ll see many options to rename your files.
Batch Rename Files With Bulk Rename Utility In Windows 10
Bulk Rename Utility is a free tool to rename multiple files using various options on your computer. It has a single-interface approach to renaming files and includes most options you need for your task.
- Download and install Bulk Rename Utility on your PC.
- Launch Bulk Rename Utility on your computer.
- Use the options on the left-hand side section to choose the folder where your files are located.
- Select all the files you want to rename on the right-hand side section.
- Use various options depending on how you want to rename your files on the interface.
- Click Preview at the bottom-right corner to see how your newly chosen name will look like on your files.
- Click Rename to actually rename your files.
Use Rename Master To Bulk Rename Files In Windows 10
Rename Master is another free tool to batch rename files on a PC.
- Download and install Rename Master on your machine.
- Open the tool.
- Select your files and folders from the right-hand side pane.
- Click the Renaming Script tab and choose one or more options to rename your files.
- Click Rename to start renaming your files.
You can also use a custom script to bulk rename files on your Windows 10 PC.
What’s your favorite method to rename multiple files at once on your Windows 10 computer? Is it File Explorer or one of the other methods? Let us know in the comments below.