"Turn from" http://jingyan.baidu.com/article/e9fb46e196ea187521f7661a.html
don't need software to batch modify file suffix name? How do I bulk modify file suffix names from the command line? Sometimes because the file suffix format is different, sometimes we need to modify the file name extension, or the file name extension is missing, need to add. If you have a small number of files that is simple and direct modification. What if it's a lot? The following small part to tell you a do not need to install the software can also operate the method
Batch files are used for batch modification of file suffix names, or you can add file extensions in bulk.
Tools/Materials
A View \ Show file name extensions
- 1
Now that you want to modify the suffix of the file, we should first look at the file extension. (already known to look directly at the section behind the bulk modification)
Method 1. You can view the file type directly by selecting the file properties.
- 2
Method 2 If you want to display the file suffix name directly, you can follow the steps below.
The following is an example of XP, find the Start---Control Panel-Folder Options
- 3
3, click View-Find the "Hide extensions of known folder types" Before the hook is removed and then applied
END
Two Modify file suffix name \ extension (manual modification)
- 1
Already can see the file suffix name, if you want to modify the file suffix name, the extension is simple
Directly select the file, right-click Rename. or press and hold the keyboard "F2" key to make changes.
This is for the action method of the file, batch modification look at the back
END
Three: Batch modification file extension--Case 1
- 1
Copy the files that need to be modified into a folder, such as
- 2
Case 1, just modify the specific suffix name file. (GIF----JPG)
such as: I just want to change the file suffix is gif file changed to JPG
Operation Steps:
1. Under the current folder, create a new Notepad file. Such as
- 3
3 Open the new Notepad file inside enter Ren *.gif *.jpg below, as
Enter the format ren empty well number point need to modify the file suffix name empty well dot need to change the file suffix name
- 4
Perhaps some people can not understand, let me briefly explain it. Such as. (Note: There is a space in English before * )
- 5
3 after setting up, save the file. At the same time, this file is changed to a. bat suffix name file (this is very important) as well. In order to remember, I changed to batch modify the file suffix name. bat.
- 6
4 after setting up, click on the bat file to run it just fine. Watch out for the GIF file format now!
- 7
5 Double-click just that file, see no, the file has all become a JPG suffix name, how is it simple?
See there must be someone to ask, if I need to make all the files in bulk modified it? If you do not have a suffix file, how do you add a suffix name? Very simple, the following small series to introduce a few cases
END
Case 2, bulk modification of file extension \ suffix name
The above is only to modify a certain class of suffix name, then if my entire folder under all types of files are modified what to do? What kind of files are there?
In fact, it is very simple, just need to modify a parameter just fine. Such as
Locate the bat file that was just right-click Edit-or open it with Notepad. ( Note: There is a space in English before *
Change the command to, Ren * * *.gif format ren space star dot sky lattice star dot file suffix name
Run again and you'll find all the files underneath the folder become GIF files. Isn't it simple?
END
Case 3. How to bulk modify file suffix names for different paths
- 1
Perhaps you will ask, this is so convenient can I keep it, just need to know the path to modify the folder can be modified? Of course
For example, if you want to modify C:\Documents andsettings\administrator\ desktop \ Bulk modify file suffix name in this folder file, you can create a new bat file on any folder. Enter the content below
- 2
It's just that. 2 cases, before adding a CD space followed by the path of the folder
How is this path acquired? Open Folder It's on the address bar.
If you want to modify the later only need in that file, edit the string behind the CD to modify the path is good, how is it simple?
Bulk change file suffixes with Windows batch files