User: editor -- 2008-06-18 << 192 194 >> |
Hits: 14567 |
Type: Batch file rename |
Search all Batch file rename examples |
Description: |
How to remove all underscores in filenames of all files in a directory? |
Input Sample: |
file_name1.txt filename_2.txt ... |
Output Sample: |
filename1.txt filename2.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. 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 '_',''} means replace '_' in filename to blank, you can also use ${FILENAME}{replace 'abc','def'} to replace abc to def in filename. |
Screenshot 1: Batch_Runner_Window |