User: monica sui -- 2012-08-08 << 986 988 >> |
Hits: 4411 |
Type: Batch file rename |
Search all Batch file rename examples |
Description: |
How to rename files according to a given mapping list? ( I tried command ${BASE}<file_content('mapfile.txt',"(?:\n|^)$match,([^\n]*)",'',10000)>.${EXT} but it doesn't work. So could you pls tell me whatthis "(?:\n|^)$match,([^\n]*)",'',10000)>. means? Then I can know what's wrong with it.thanks! |
Input Sample: |
AHAM000001 11Y6W BH YX.pdf AU--000097 11Y6W BH PX.pdf BALA000018 11Y6W BH YX.pdf BENT000014 11Y6W BH YX.pdf CHAN001272 11Y6W BH YX.pdf |
Output Sample: |
AHAM000001 11Y6W BH YX 1_81.pdf AU--000097 11Y6W BH PX 3_513.pdf BALA000018 11Y6W BH YX 1_135.pdf BENT000014 11Y6W BH YX 1_132.pdf CHAN001272 11Y6W BH YX 3_665.pdf |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
Assume: 1. You have many files such as a01.pdf, a02.pdf, ... 2. You have a mapping file mapping.txt under the same folder of these pdf files, you want to rename them with mapping rules in mapfile.txt, the format of mapfile.txt is: a03,new01 a01,new02 a02,new03 ... You can use following operation: * open "tools->batch runner" menu * drag multiple files from windows file browser to batch runner window * check option of "set output filename" and fill following entry like: * check output file column, the filename change will be: a03.pdf->new01.pdf a01.pdf->new02.pdf a02.pdf->new03.pdf * click "file rename", done. If it doesn't work on your computer, please make a simple example just like this case, then find out what is the difference between this case and your case. |
Screenshot 1: Batch_Runner_Window |