rename file but keep the date
Posted: 04 Mar 2013 15:35
Im having a bit of trouble renaming two files. any help would be great. what im trying to do is
rename
bl6620.x1.BLU.130303.TXT
bl6620.x1.BLU.130302.TXT
the date is at the end yymmdd. this always changes. here what i need the files to look like
bl6620_x1_BLU_130303.TXT
bl6620_x1_BLU_130302.TXT
here the code im trying to make work at the moment
rename
bl6620.x1.BLU.130303.TXT
bl6620.x1.BLU.130302.TXT
the date is at the end yymmdd. this always changes. here what i need the files to look like
bl6620_x1_BLU_130303.TXT
bl6620_x1_BLU_130302.TXT
here the code im trying to make work at the moment
Code: Select all
REN "C:\TEST\bl6620.x1.BLU.130302.TXT" bl6620_x1_BLU_*.TXT