New
#1
Help renaming a .txt file in a .BAT file
G'day,
I wonder if someone could point me in the right direction?
I have a .BAT file that uses robocopy to backup my data. Part of the robocopy saves the reuslts into a log file called backup_log.txt
At the end of the .BAT file, once robocopy has been completed and the .txt file has been created, I would like to rename it such that the name of the .TXT file references the data and time.
In the CMD window I see I have access to the date /T command, but for the life of me I cannot figure out how to concatenate these commands with the .txt file. Its easy using the Unix move command..........but I'm stumped in CMD.
My goal is to rename backup_log.txt to Sat 10/12/2011_backup_log.txt.
Can anyone make some suggestions?
Thanks,
Golden