If there are many file names to be prefixed in batches, there are two ways: one is to use batch scripts, which can be done without installing additional tools, but requires a certain script foundation. The second is to use the file batch renaming tool, which is simpler and more suitable for ordinary office workers. The following is to share 5 kinds of operation methods for prefixing file names in batches. You can choose according to your own needs.
Many file names uniformly add prefix effect preview
before treatment:
after treatment:
method one: HeSoft Doc Batch Tool
professional document batch processing tools, simple interface, simple operation steps, fast processing process. Feature-rich, in addition to batch modify the file name, but also support batch conversion file format, batch modify the document content and so on.
Operation steps:
1, open. HeSoft Doc Batch Tool , select file name → file name to add prefix and suffix.
2. Add files or import files from folders, and add all files that need to be prefixed to the following.
3. Select Add Prefix, and then enter the prefix text and symbol, such as Prefix_, in the text box below.
4. After the processing is completed, directly click on the save location to view. All files have been prefixed.
Method 2: Advanced Renamer
A powerful file batch renaming tool that supports up to 14 renaming rules to meet a variety of complex file renaming needs. It can handle tens of thousands of files or folders at the same time without modifying them one by one, saving time and effort.
Operation steps:
1. Open the Advanced Renamer and click File to import all files to be prefixed.
2. Click Add Scheme, select Add, and then enter the prefix text symbol you want to add, such as Prefix. The index position is filled with 1. The modified new file name will be displayed on the right in real time. You can check it.
3. After confirming that it is correct, click Start Batch Processing.
Method 3: Windows a batch script
batch script is the Windows system comes with the function, no need to install other third-party software, can be used directly, and completely free, just run the script can be automatically processed. However, it can only handle simple requirements and is not as functional as other scripts.
Operation steps:
1. Put all the files to be prefixed into the same folder, then create a new text document in this folder, and enter the batch code in the text document.
2. Save the file in. bat format, and then double-click to run the script to process it successfully.
Method 4: PowerShell the script
compared with traditional batch scripts, PowerShell is more powerful and flexible, can easily handle complex file processing needs, and also supports regular expressions. But PowerShell scripts are also more complex and not suitable for zero-base personnel.
Operation steps:
1. Hold down the right mouse button of Shift and select to open the PowerShell window here.
2. Enter the script code for adding prefixes in batches in the PowerShell window to complete.
Method five: in Excel by formula add
in the Excel table, list the original file name and the new file name after adding the prefix, and then use the batch script to operate, which is essentially a batch processing method, but it is more intuitive, can clearly see the effect of the file name modification, and is easy to check.
Operation steps:
1. Create a new Excel table, copy the original file name to column A, and enter the formula = "prefix_" & A1 in column B. Prefix_Replace the prefix you need to add. Press the Enter key to automatically generate a new file name with the prefix added. Drag the formula down to automatically generate all new file names.
2. Copy the new file name generated in column B and paste it as a value, so that the formula in the cell can be cleared. Then enter the formula = "ren" "" & A1 & "" "" "" & B1 & "" "" in column c, and drag the fill formula down to automatically generate heavy commands for all files.
3. Copy the commands in column C to the text document, save them as. bat files and put them in the folder where the files are located. Double-click to run the script.
For people with a code foundation, adding prefixes to file names in batches is a very simple operation, and using scripts can be done quickly. However, people with zero foundation are more suitable for using file batch renaming tools to operate, which can get started quickly and will not make mistakes.