Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

168.Batch file rename -- How to rename all files in a directory, replace all 'abc' in the filename with 'def'?

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


Similar Examples:
How to rename all files by multiplying each number in filename by 3? (62%)
How to rename all the files by adding the file size after filename? (61%)
How to rename all files by adding a letter 'x' behind each filename? (59%)
How to rename many files to the format of file.number.ext? (58%)
How to batch rename files by replacing all spaces with underscore? (57%)
How to batch rename text files by adding the value of file content to filename? (56%)
How to batch rename files by multiplying each number in filename by 2? (55%)
How to rename many files with the last modified date of the file? (55%)

Check Demo of Batch file rename
Keywords:
dos command  dos  filenames  command  abc  names  directory  title  containing  comma  search filenames and rename  search and rename filenames  filenames in a directory  rename abc  input directory  different directory  replace abc def  rename directory