Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

73.Batch file rename -- How to rename file by sequence id with specified pre-defined order?

User: editor -- 2008-05-09          << 72  74 >>
Hits: 392
Type: Batch file rename   
Search all Batch file rename examples
Description:
I have a lot of files I want to rename them to 1.pdf, 2.pdf, 3.pdf ... with specified order, the order of these files is saved in another text file.
Input Sample:
15-de2563de
17-fe24efe3
14-e213dedf
14-c23ef323
15-d546d35e
Output Sample:
rename "15-de2563de" "newname.1"
rename "17-fe24efe3" "newname.2"
rename "14-e213dedf" "newname.3"
rename "14-c23ef323" "newname.4"
rename "15-d546d35e" "newname.5"
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
Steps:
1. ctrl-o to open your order file
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' to:

3. Click "Replace" button, and save to run.bat

Run the run.bat at DOS prompt.
Download Script:  scripts/73.rst.zip

Screenshot 1:  Replace_Window


Similar Examples:
How to rename many jpg files with sequence id and record it?
(64%)
How to rename many files with the last modified date of the file? (56%)
How to create a text file including filenames in a folder with specified format? (55%)
How to extract all sentences that contain specified words? (55%)
How to convert a text file to specified format? (53%)
How to remove the sequence number before each line of text file? (53%)
How to move all files to specified sub-folders according to their extension? (52%)
How to change text file format with user specified rules? (52%)

Check Demo of Batch file rename
Keywords:
pdf  sequence id  dos  fine  define  order  sequence  seq  how to rename  batch file rename  search file with text pattern and rename  order rename  rename files replace text  text search and rename  specified rename  replace text rename  rename with text  replace another