[Modify file names in batches and remove brackets]

1. Batch modification of file names

After downloading many pictures from the browser, etc., the naming order is messed up. If you want to rename the pictures, start from the number 1
First, select all the pictures in the folder a>
Please add image description
Right click, click Mingming, select a picture to rename, enter a space and click Enter
Please add image description
as shown in the figure below
Please add image description
All pictures are arranged according to numbers. At this time, there are brackets outside the number names. If you need to remove the brackets, follow the steps below
Please add image description

2. Remove the brackets

First create a new text document in the picture folder
Please add image description
Enter in the document:

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

Please add image description

Then rename the txt document you just entered the command to with the .bat suffix and click Save
Please add image description
After saving, double-click the file with the .bat suffix you just modified and the picture in the folder The brackets in the name have been removed
Please add image description

Guess you like

Origin blog.csdn.net/m0_64384233/article/details/134274152