User: editor -- 2008-07-01 << 207 209 >> |
Hits: 3282 |
Type: Batch file rename |
Search all Batch file rename examples |
Description: |
How to batch rename files by adding an [ok] before '_', but do not add to file which already has '[ok]'? |
Input Sample: |
Original file names: File1_abc File2[ok]_def File3_uvw File4_xxx |
Output Sample: |
New file names: File1[ok]_abc File2[ok]_def File3[ok]_uvw File4[ok]_xxx |
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 multiple 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. if you want to record the mapping between oldname and newname, you can click 'Export List', and save the mapping to a file. Note: ${FILENAME}{replace,'(\[ok\])?_','[ok]_'} means replace '[ok]_' or '_' with '[ok]_'. There are many ways to change filename flexibly: #.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 '_' ... |
Screenshot 1: Batch_Runner_Window |