| User: editor -- 2008-05-31 << 167 169 >> |
| Hits: 564 |
| Type: Batch file rename |
| Search all Batch file rename examples |
| Description: |
| How to rename all files in a directory, replace all 'abc' in the filename with 'def'? |
| 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. 5. click 'Rename', finish. ======================= For version 2.0 and above 1. select menu 'File->Load->DOS command output' 2. input working directory where file located 3. in 'DOS command' window enter: 4. click 'OK', all filenames containing 'abc' will be listed 5. click ctrl-h open 'replace' dialog in 'Replace' page: * set replace unit to 'Line' * set search for pattern to: * set replace with pattern to: 6. click 'Replace', and save the result to a.bat 7. run a.bat, ok! |
| Download Script: scripts/168.rst.zip |
Screenshot 1: Batch_Runner_Window |