Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

453.Batch file rename -- How to rename files by removing last 8 digits and adding 6 digits?

User: george hellas -- 2010-03-19          << 452  454 >>
Hits: 4152
Type: Batch file rename   
Search all Batch file rename examples
Description:
Total number of jpg images are 200000-300000 files... 
How to remove for example the last 8 digits from right of filename with 6-digit numbers staring from another number? 
Is it possible?
Input Sample:
xxxx_yyy_filename-00000000.jpg 
xxxx_yyy_filename-00000001.jpg 
xxxx_yyy_filename-00000002.jpg 
............................... 
xxxx_yyy_filename-00200000.jpg
Output Sample:
xxxx_yyy_filename-100000.jpg 
xxxx_yyy_filename-100001.jpg 
xxxx_yyy_filename-100002.jpg 
............................... 
xxxx_yyy_filename-300000.jpg
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
We have not tried to rename so many files in one time, suggest to rename them in 10 times or more. 
1. open 'Tools->Batch Runner' menu 
2. drag some files from windows file browser to Batch Runner window. 
3. check option of 'Set output filename', and fill entry followed to: 
 
4. check the filename preview from 'output file' column, and click 'File Rename', done. 
 
Note: 
* if there are too many files and it's not easy to drag, you can try click 'Search files' button, and enter some criteria to search less than 20000 file each time. 
* {1,-9} means keep characters from 1 to -9(the 9th count from the end). 
* ######{100000} means 6 digits start from 100000 
if you want to start from another number like 200000, use:  ${BASE}{1,-9}######{200000}.${EXT} 
* you must make backup in advance to avoid mis-operation.

Screenshot 1:  Batch_Runner_Window


Similar Examples:
How to rename files by removing all leading numbers? (67%)
How to batch rename files by removing all trailing numbers? (63%)
How to batch rename files by removing all the letters and keep the rest? (63%)
How to batch rename files by moving the leading numbers to the end? (61%)
How to rename files to the last 10 chars of 3rd line of file content? (61%)
How to batch rename files by removing first 3 characters of filename? (60%)
How to rename files by removing the characters between '(' and ')'? (60%)
How to batch rename files by removing the first 3 characters of each file name? (60%)

Check Demo of Batch file rename
Keywords:
iso  keep character  images  digits  image  total  less  200  backup  adding  in files count number of digits  rename file to last 8 digits  use rename 8 digits  removing last 8 characters in filename  remove last 6 digits of filename  removing last 8 digits of filename  count jpg files  rename file to 8 characters