I need to write a bat file that does the following:
I would receive 2 files abc.20130702144012.out and cde.20130702144515.out (yyyymmddHHMMSS) and these two files has to be renamed and changed to xyz.20130702144012.csv and pqr.20130702144515.out respectively.
Could someone please let me know the code to do this.
Presently I have avoided the timestamp and created this, but I need to have the time stamp.
IF EXIST c:\TEMP\d2\*.out move c:\TEMP\d2\abc.out c:\TEMP\d2\xyz.csvIF EXIST c:\TEMP\d2\*.out move c:\TEMP\d2\cde.out c:\TEMP\d2\pqr.csv
:FINISH
Thanks!