How to modify the file name in batches in Windows system

  
 

When using the Windows
system, sometimes we need to rename all the files for easy searching and use. If it is a single file, renaming is a very simple matter, but if it is a large number of files, how to modify the file name in batches?

This will introduce the method of Windows to modify the file name in batches:

1, first put the files that need to be changed in batches in a folder, if necessary, you can also put all the files. Reorder, such as the installation size, or install the editing time. This step is very simple, as long as the right mouse button, you can see the arrangement, and then you can choose according to your needs.

2, then select the files in the folder, press Ctrl + A to select, then press F2 to rename, or click the first file right mouse button — — rename. At this time, the first file will become editable, and then enter the name you want to set, enter, you will have become all the documents behind this name:

At this time Renaming is complete, but if you don't like the parentheses that appear after naming, you can of course remove them manually, but a few files are fine. If it is a large number of files, it is very troublesome. Here, share a code, you only need to copy and paste it into the TXT text document, then modify the TXT suffix to a bat suffix, make it a batch file, and then save it in the file where the file to be batch modified is located. In the folder, run, you can automatically remove all the brackets.

The code is as follows:


@Echo Off&SetLocal ENABLEDELAYEDEXPANSIONFOR %%a in (*) do (set “name=%%a”set “name=!name: (=!”set “name=!name:)=!”ren “%%a” “!name!”)exit

Copyright © Windows knowledge All Rights Reserved