How do I increment the serial number 001 in front of the file name in batches?There are two good way

Mondo Technology Updated on 2024-01-31

How do I increment the serial number 001 in front of the file name in batches?Many people will do this when using the computer, if there are more files on the computer, it will have a great impact on the preservation and search of files, for which many friends have thought of a good way, that is, in front of the file name to increase the sequential number, for example, there are 100 files in a folder, then add 001,002,003 in front of the 100 files....Incrementing numeric number. However, when it is added to the actual operation, it will be found that although it is relatively simple, it takes a lot of time due to the large number, which is a manifestation of low efficiency, and if you waste too much time, it will be a bit worthwhile.

In fact, you can use the batch processing method to process, batch modification of file names is a very time-saving trick, according to today's purpose, to bring you two very good methods, the first method uses professional batch renaming software, the second method is to use commands to batch modify, the two methods have their own advantages, if you have time, you can try them all.

Method 1: Use batch file rename software to perform batch operations

The name of the software used is "Yousu file batch renaming" software, which is a computer software with comprehensive functions and simple operation steps, please do it well and install it before you start.

Step 1, open the "Yousu File Batch Renaming" software tool that has been installed in advance on the computer, this operation belongs to the category of file batch renaming, so click the "File Rename" function to enter the inner page.

Step 2, prepare the files that need to be added to the serial number in advance, and then click the [Add Files] button to select all the prepared files at one time and import them into the software, and you can see the list of file names after the import is successful.

Step 3, you can set it up: select "Insert" on the right side of the naming methodSelect Number for insert type;The insertion position does not need to be set, and the default is the first file name;Finally, the number is set, enter 1 on the right side of the start, set 1 to the right side of the increment, and set 3 to the right side of the number of digits.

Step 4, at this time, you can preview and check the setting effect on the right, you can see that 001,002,003,004,005 has been added in front of the file name....to prove that the setting is correct.

Step 5, click the red button in the upper right corner to start the software, and wait for the software to pop up the prompt of "Rename Successful", indicating that the serial number has been increased successfully.

Step 6, and finally from the following results, we can see that we have successfully added the numeric serial number that starts to increase from 001 in front of the names of 20 files, and the efficiency is still very high at one time.

Method 2: Perform batch operations with the help of named methods

To bulk add an incrementing sequence number in front of the file name (for example"001_file1.txt"、"002_file2.txt"etc.), you can use the following method, through which you can add an increasing sequence number in front of the file name in bulk. Remember to back up your important files before the operation to avoid irreparable losses due to accidental modifications.

1. In the Windows operating system:

Open Explorer (Windows Explorer).

Navigate to the destination folder that contains the file you want to rename.

In a folder, Shift-right-click an empty space and select"Open the command window here"or"Open a PowerShell window here"。

In the command or PowerShell window that opens, enter the following command and press Enter:

prefix = "001_"; $count = 1; get-childitem | rename-item -newname

This command will prepend all file names with an increasing ordinal number and rename them"001_file1.txt"、"002_file2.txt"Wait a minute.

2. In macOS or Linux operating systems:

Open the Terminal app.

Use the cd command to switch to the destination folder where the file you want to rename.

Enter the following command and press Enter:

count=1; for file in *;do mv "$file" "$(printf '%03d' $count)_$file"; (count++)done

This command will prepend all file names with an increasing ordinal number and rename them"001_file1.txt"、"002_file2.txt"Wait a minute.

Many simple computer operations are afraid of a huge number, so it takes a lot of time to complete, and it is very boring, such as modifying file names in batches. Today, according to the help of fans, I shared two tips on "How to add serial number 001 increment in front of the file name in batches?"."Do you think it's easy to hit after watching it?Each skill is the direction of our ability to improve our work ability, hurry up and give it a try, the efficiency will definitely surprise you.

Related Pages