Renaming files in the folder and copy to

February 15, 2011 at 06:20:16
Specs: Windows xp
Hi All

I have a rename command which works but one thing i want to ask that is there any way to rename the file as it is below having & in the rename file (HALA_Dly_Plant&Well_Report.xlsm)
or a batch script to rename and copy to other folder with the same name that i defined above

cd "C:\ENGDATA\PDMS_Upload\Data_loading\HALA\Hala_DPRS_Field\"
ren *.xlsm HALA_Dly_Plant&Well_Report.xlsm


See More: Renaming files in the folder and copy to

Report •

February 15, 2011 at 11:03:02
Im thinking you should try this:

ren *.xlsm yourfilename.xls
del *.xlsm
rename *.xls yourfilename.xlsm
copy *.xlsm C:\ENGDATA\PDMS_Upload\Data_loading\HALA\Hala_DPRS_Field\

As far as I know this should rename all of your files, delete the old files and copy it to the new location.

Report •
Related Solutions

Ask Question