[Batch Batch] Quickly batch modify the file name of a specific folder

Batch modify filename of specific folder

selected folder

Select and enter the folder whose file name needs to be changed.
insert image description here

New get.txt

Enter the following:

dir *.jpg* /b>rename.xls

Since what needs to be modified is the .jpgsuffix file, you can modify it *.jpg*at will according to the suffix of the file you want to modify. For example, it can be modified to *.txt*etc.

insert image description here

modify suffix

Modify get.txt to get.bat, and double-click to run.
insert image description here

After double-clicking to run, the .xlsfile .
insert image description here

Action .xlsform

  1. open .xlsform

insert image description here

  1. Fill in column B with the file name that needs to be modified , and fill in column C with ren
    insert image description here
  2. Type in cell D1 =C1&" "&A1&" "&B1and press Enter.

insert image description here

  1. Then drop down to get the following table.
    insert image description here
  2. Copy the contents of column D.

New rename.txt

Paste the copied content into rename.txt.
insert image description here
insert image description here

Modify the suffix

Modify rename.txt to rename.bat , and then double-click to run.
insert image description here
insert image description here

Successfully modified! ! !

Note: If the file name has Chinese, there will be no change in this operation.

Guess you like

Origin blog.csdn.net/qq_44824148/article/details/122983735