User: editor -- 2009-03-09 << 319 321 >> |
Hits: 3857 |
Type: Batch file rename |
Search all Batch file rename examples |
Description: |
How can I rename some files with increasing sequence id starting from 302, and 303, 304 ,... |
Input Sample: |
file_a.jpg file_b.jpg file_c.jpg ... |
Output Sample: |
newfile_302.jpg newfile_303.jpg newfile_304.jpg ... |
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: 5. click 'Rename', finish. Note: #{302} means number start from 302, increasing by 1 each time, 302, 303, 304, ... #{302,2} means number start from 302 with 2 as increasing step: 302,304,306, ... ${EXT} means extension. 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 '_' |
Screenshot 1: Batch_Runner_Window |