Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

987.Batch file rename -- How to rename files according to a given mapping list?

User: monica sui -- 2012-08-08          << 986  988 >>
Hits: 2260
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


Similar Examples:
How to rename files according to a given mapping list? (100%)
How to batch rename files by a filename mapping list? (75%)
How to merge 4 lines to one according to given rules? (64%)
How to make a batch replacement according to a text mapping file? (63%)
How to batch rename files by replacing semicolon with a single dot? (59%)
How to batch rename files by removing everything after last "."? (58%)
How to move files to new folders according to beginning letters of filename? (58%)
How to batch rename files by generating a random word that in the list? (58%)

Check Demo of Batch file rename
Keywords:
mapfile  difference  pdf  pdf file  mapping list  given  give  what  tel  mapping  rename windows files mapping file  batch rename pdf files mapping  pdf rename  batch rename pdf  rename pdf  batch file rename pdf  batch files to rename pdf files  pdf batch rename