When we use computer files, we often need to change the file suffix. Many friends know how to modify the suffix for a single file, but they do not know how to modify the suffix in batches. The editor below will bring you a tutorial on batch modification of file suffix names. Hope it helps those in need.
1. View or display the file suffix name. Method 1: Right-click the file and select "Properties" to view the file type.
2. Click "Start - Control Panel - Folder Options" in the lower left corner, then click "View",
Find "Hide Known Uncheck "Folder type extension" and click Apply to directly display the file extension
3. Modify the file extension, select the file directly, and right-click to select "Rename" or hold down the "F2" key on the keyboard to modify.
4. If you want to batch modify GIF files into JPG files, right-click to create a new "Text Document" in the folder that needs to be modified,
After opening the text document, enter the content of "ren(space)*.gif(space)*.jpg" in it. After setting, save the file.
At the same time, change this text file to the ".bat" suffix name file, after setting it up, click to run the bat file just now, and you can see that the GIF files have all turned into JPG files.
5. There are different types of files in the folder. You need to modify the suffix names in batches. Create a new text document in the file and
open the text. Document, enter "ren(space)*.*(space)*.gif", save the file after setting,
At the same time, change this text document to a file with the ".bat" suffix name, and then click Run You can modify all the suffix names of this file.
6. If you want to modify the file name suffixes of different paths in batches, first copy the path of the folder and create a new text document in any folder,
Open the document, enter "cd (space) file path ren*.gif (space)*.jpg", save the file after setting,
Change the text file to the ".bat" suffix file and then run the file to complete.
The above is the detailed content of Modify file suffixes in batches. For more information, please follow other related articles on the PHP Chinese website!