Windows 8 batch change or add file suffix method

  
                

For users who need to modify a large number of file suffixes, the ren(rename) command in Win8 is a good choice. I believe that many people are unfamiliar with this order. In short, we can use this command to modify or add file suffixes in batches, and change the cumbersome steps.

The specific method is described as follows:

The Ren command can be used to modify the name of a file, including the suffix name. For example, to rename the 1.jpg in the D drive to 2.png, just type the following command at the command prompt and press Enter.

ren D:\\1.jpg 2.png

Note that if the prompt permissions are insufficient, then you need to run the command prompt as an administrator.

If you want to modify the suffix name in bulk, you can do this with wildcards. For example, the command to change the suffix name of all files in the D drive to jpg is:

ren D:\\* *.png

If you only want to type a file (with the same suffix name) Modify to another type, for example, change all jpg file suffixes in the D drive to png, the command is:

ren D:\\*.jpg *.png

If you It is often necessary to modify the suffix name in batches. You can copy the following two commands into the txt text file:

cd /d %~dp0

ren * *.jpg

Save Then modify its suffix txt to bat. In the future, you only need to put the bat file and the file to be modified into the same directory, and then run the bat file as an administrator to change the file suffix name in the directory to jpg. As shown below:

It is worth noting that, from the start Win7 systems, many commands are required to run as an administrator, otherwise the operation can not proceed smoothly. Hope this tutorial can help you.

Copyright © Windows knowledge All Rights Reserved