I am working in a Windows XP environment. I have a *.cmd file that somebody else created to ftp a bunch of files to a different server. I need to change the name of the file to include a time stamp on the end of the file name.
The original file names looks like this (they are stored in one directory):
file_XX25_20080619_143000.dat
file_XX26_20080619_143000.dat
file_XX27_20080619_143000.dat
(the date and time of the file creation is at the end).
I need to drop the last 6 characters, the time, and add the current time to the end of the file. The current time being when the cmd file to ftp the files is run. I have the cmd file setup to run from a scheduled task.