how to script changing a filename

March 7, 2011 at 08:42:12
Specs: Windows server 2003
I'm trying to create a batch script to append 3 characters to existing .csv files and am having trouble. So the filename looks something like this, BTec-F_2011-02-14.csv, but I would like to change it to look like so: FMT_BTec-F_2011-02-14.csv.

Would someone be able to assist me with getting this setup correctly?


See More: how to script changing a filename

Report •

#1
March 7, 2011 at 11:07:12
Don't need a script just do...

Copy BTec-F_2011-02-14.csv FMT_BTec-F_2011-02-14.csv

or

ren BTec-F_2011-02-14.csv FMT_BTec-F_2011-02-14.csv

if you have more than one file then...

ren BTec-F_*.csv FMT_BTec-F_*.csv


Report •
Related Solutions


Ask Question