User: editor -- 2008-06-26 << 202 204 >> |
Hits: 3653 |
Type: Batch file rename |
Search all Batch file rename examples |
Description: |
How to batch rename files from format like TEST_2008_06_22_ABC.TXT to 20080622.TXT? |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. open menu 'Tools->Batch Runner' 2. click 'Pick files' select multiplue files 3. sort these files by name or date or others, by clicking different column titles. 4. change 'set output filename' entry from ${FILENAME} to: and click 'Apply' at right. 5. click 'Rename', finish. Note: ${BASE}{words,2,4,"_",""}.${EXT} means take 2 to 4 words in filename,using "_" as delimiter, using blank as output delimiter. More examples: #.jpg --- 1.jpg, 2.jpg, ... ##.jpg --- 01.jpg, 02.jpg, ... ###.jpg --- 001.jpg, 002.jpg, ... @.jpg --- a.jpg, b.jpg, ... ${BASE}###.jpg --- add 3 digit sequence number ${BASE}{1,3}.jpg --- keep 1 to 3 chars of filename ${BASE}{-3,-1}.jpg --- keep last 3 chars of filename ${BASE}{replace,'a','b'}.jpg --- replace a with b ${BASE}{replace,'_',''}.jpg ---remove '_' For detail, please search ${FILENAME} at: http://www.mind-pioneer.com/replace/help/Batch_File_List_Operations.html |
Screenshot 1: Batch_Runner_Window |