Batch change the file name EXCEL, a command can be done

Tasks: Curry school students need to update and improve the information, which is to be imported to a job as a student ID number of photo file name,

The current student photo submitted by students each class is named after. How to batch convert into a student's name ID number it?

Solution: EXCEL assist with file name processing, batch execution program complete with DOS

Specific operation is as follows:

1, Batch Export "Student Name" file name to the EXCEL table. (For details on this step, you can " concern" after my one hundred numbers, see the article "batch extraction file name, every minute thing")

Open any blank document, write the following DOS command: dir D: \ 2018 session of student photos / b> D: \ 2018 session of student photos \ Photos name .xls, copy the command to execute DOS window, paste and then back car. Back to the folder, you can see a "picture name" the EXCEL file.

2, open the "picture name" EXCEL file, batch editing of the proposed alternate name.

In the table "student name" column corresponding to the position of introduction of the student ID number, the increase in the auxiliary column, ".jpg", entered in cell F2: = "REN" & A1 & "," & a C1 & Dl, then copy down.

Explanation: ren is a rename command structure " REN old name new name", among which the rear ren, the old name and new name, it must be a space.

3, EXCEL table bulk copy command ren content, into a blank text file and place the file in the original folder

4. Change the text file extension " .txt" to " .bat", generates a batch execution, double-click execution, batch ID number will be changed to the name of the student, perfect to complete the task.

Learning a little each day, a little progress every day, silicon product step, will be able to induced miles give Great.

Guess you like

Origin www.cnblogs.com/hanlei-/p/11130237.html
Recommended