Files rename using batch file in MS-DOS

I would like to rename a large number of files as following:

01_001_Map.DAT
01_001_Map.TAB
01_001_Map.MAP
01_002_Map.DAT
01_002_Map.TAB
01_002_Map.MAP

to

01_001_DOT.DAT
01_001_DOT.TAB
01_001_DOT.MAP
01_002_DOT.DAT
01_002_DOT.TAB
01_002_DOT.MAP


How can I rename this files name using bactch file?
Thank you,
LVL 1
VeljeanAsked:
Who is Participating?
 
glenn_1984Connect With a Mentor Commented:
Put in batch file or enter on command line.
Make a backup first.

rename ???????MAP.*  ???????DOT.*
0
 
tuantdm5Commented:
rename ??????_Map.??? ??????_DOT.???
0
 
VeljeanAuthor Commented:
Thank you very much!1
0
 
Bill PrewCommented:
ren *_MAP.* *_DOT.*

~bp
0
 
glenn_1984Commented:
Veljean:

either one works .* or .??? give the same end results
0
All Courses

From novice to tech pro — start learning today.