Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Bat file

$
0
0

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.csv
IF EXIST c:\TEMP\d2\*.out move c:\TEMP\d2\cde.out c:\TEMP\d2\pqr.csv
:FINISH


Thanks!


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>