How to Remove Numbers from Filenames

Let's discuss another simple task that can be automated with help of batch files. The task is to remove numbers from filenames like these:




name[1].ext
name[2].extname[3].extname[4].extname[5].ext
...

So what do you have to do? You can use a simple script like this:

@echo off for /f "tokens=1,2,3 delims=[]" %%a in ('dir /b *[1].*') do ren %%a[%%b]%%c %%a%%c 

Hope you'll find it useful.
0 Comments
Disqus
Fb Comments
Comments :

0 comments:

Post a Comment