Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

71.Batch file rename -- I have many files, how to rename them with even numbers like file2,file4,file6,...

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


Similar Examples:
How to move all files whose names are ended with numbers to another folder? (53%)
How to rename many files to the format of file.number.ext? (50%)
How to compare and get the difference between numbers of two file? (49%)
Is there a way to batch rename files with the first line of the file content? (49%)
How to make multiple copies of a file and rename them from a list? (46%)
How to split a file by specified number of lines like 10,20,30,20,20,20 ...? (46%)
How to merge many files into one file, and add filename before each file? (45%)
How to batch rename files from format like 'file.002' to '002_file'? (45%)

Check Demo of Batch file rename
Keywords:
dos command  even  dos  increasing  command  increas  directory  dir  title  comma  rename even numbers  rename filename increasing  search and replace with increasing numbers  how to replace increasing numbers  how to sort numbers by  file get directory  output directory date  search and replace with increasing number