| 1. |
Solve : Renaming with Unique Name? |
|
Answer» Our shop is standardized on WIN2K. I've been tasked to write a batch file that will archive a given file to a specific directory each day at a specific time. Seems EASY using win2k "schedule task" executing a DOS batch file with REN or RENAME, but how do I assure that the archived file name is unique each time the batch file is run. Can I somehow append a timestamp to the name each time?You can insert the date and time into a filename using the %date% and %time% environment variables. |
|