Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

265.Batch file rename -- How to batch remove/delete the last 6 characters of many filenames?

User: editor -- 2008-09-03          << 264  266 >>
Hits: 5855
Type: Batch file rename   
Search all Batch file rename examples
Description:
How to batch remove the last 6 characters of many filenames?
Input Sample:
file_a(1998).dat
file_b(2001).dat
file_c(2002).dat
Output Sample:
file_a.dat
file_b.dat
file_c.dat
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.

Note: ${BASE}{1,-7} means keep characters from 1st to bottom 7, in other word, remove the last 6 characters.
${EXT} means extension.

More examples:

#.jpg --- 1.jpg, 2.jpg, ... 
##.jpg --- 01.jpg, 02.jpg, ... 
###.jpg --- 001.jpg, 002.jpg, ... 
@.jpg --- a.jpg, b.jpg, ... 
${BASE}###.jpg --- add 3 digit sequence number
${BASE}{1,3}.jpg --- keep 1 to 3 chars of filename
${BASE}{-3,-1}.jpg ---  keep last 3 chars of filename
${BASE}{replace,'a','b'}.jpg --- replace a with b
${BASE}{replace,'_',''}.jpg ---remove '_'

Screenshot 1:  Batch_Runner_Window


Similar Examples:
How to batch remove/delete the 5,6,7 characters of many filenames? (92%)
How to batch remove/delete first 8 lines of many files? (78%)
How to batch remove/delete first 500 bytes of many binary files? (74%)
How to batch remove/delete first and last line of many text files? (74%)
How to remove a string of characters from multiple filenames? (72%)
How to remove/delete all multi-byte characters in a text file? (68%)
How to batch rename files by removing the first 3 characters of each file name? (68%)
How to remove/delete all single-byte characters in a text file (67%)

Check Demo of Batch file rename
Keywords:
keep character  1st  extension  keep last  bottom  filenames  sequence number  digit  dig  jpg  batch file to remove 1st 3 characters in filename  remove characters in filenames many files  batch remove last 7 characters of file name  replace sequence in filenames  batch file keep last 7 files  remove last 7 characters from filename  remove the last 7 characters of a file name  remove last 7 characters of a filename