User: editor -- 2008-05-08 << 70 72 >> |
Hits: 3352 |
Type: Batch file rename |
Search all Batch file rename examples |
Description: |
I have many files, how to do if I want to rename them with even numbers like file2,file4,file6,... |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
For version 2.1 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. Note #{1,2} means number start by 2, increasing by step 2. 5. click 'Rename', finish. ======================= For version 2.0 and above: 1. Open File->Open->DOS Command output menu, set: DOS Command=>dir /b Set Working directory to your file directory Click OK, your files will be listed 2. press ctrl-h to open 'Replace' dialog 1)set 'replace unit' to 'Line' 2)set 'search for pattern' as: 3)set 'replace with pattern' as: 3. click "replace", and save the file as a.bat. 4. run a.bat file at DOS prompt. Note: calc($line_no*2) get 2,4,.. |
Download Script: scripts/71.rst.zip |
Screenshot 1: Batch_Runner_Window |