|I have a batch file created that renames files from current file to a filename like mm-dd-yyyy.dem which works great when we recieve files on Tuesday-Friday for the previous day as there only for one days worth of files. The problem I have is we get three days worth of files on Monday from over the weekend. On Mondays I need to rename those files to the same format mm-dd-yyyy.dem but with there individual days, i.e. fridays file will have one date, sat another, and sun another. I am trying to accomplish this using a batch file in dos nt command line using xp I currently have the following commands which allow the renames for single days.|
IF EXIST rb01*.txt ren "rb01*.txt" "%date:~4,2%%date:~7,2%%date:~-4%%.DEM"
IF EXIST rb02*.txt ren "rb02*.txt" "%date:~4,2%%date:~7,2%%date:~-4%%.INS"
IF EXIST rb03*.txt ren "rb03*.txt" "%date:~4,2%%date:~7,2%%date:~-4%%.PRO"
The txt file runs basically logs into our unix box and runs a few mget commands to get the files.