How does Win10 modify the file suffix name in batches? Win10 modified suffix name alternative method

  

Usually we modify the file suffixes to be done by right-clicking >"rename", single or a few files are not too complicated to do, but if we have multiple files that need to be renamed it is obviously too It's cumbersome, so how can we quickly modify the suffix name for multiple files?

Method 1:

1, shortcut key <;win+r” Enter “CMD” in the run box to open the console.

2, first we can find any JPG format image file on any disk.

3, a single file to modify the suffix name. Use the ren command to rename the 2.jpg in the E drive to ad.jpg, just type the "ren E:\\1.jpg 2.jpg" command at the command prompt and press Enter.

Note: If the prompt permissions are insufficient, re-run "CMD" as an administrator.

4. Modify the suffix name in batches. If you need to change all the files in the E drive to the file with the specified suffix name, enter the “ren E:\\* *.jpg” command in the console to change the file suffix name to .jpg.

5. Modify the suffix name of the specified file type. If you only want to change a file with the same suffix name to another type, for example, change all the jpg file suffixes in the E disk to jpg, and enter “ld_;ren D:\\*.jpg *.jpg&rdquo” in the console. The command can be.

Method 2:

Modify the suffix name of the file in the specified folder. If you need to modify the file name in a folder to be jpg type (the modified suffix name can be modified arbitrarily), we only need to create a new batch file with the suffix .bat and the batch file. The file with the modified suffix name can be placed in the same folder. After the completion, it will be run as the administrator. The batch command is as follows:

cd /d %~dp0

ren * *.jpg

7, of course, all of the above modifications can be modified by creating a new batch, just unload the batch file by typing the console command.

Copyright © Windows knowledge All Rights Reserved