You can do it with "pure" batch file as well, using e.g the batch date
time functions from Ritchie Lawrence batch library available at http://www.commandline.co.uk/lib
You can do it with "pure" batch file as well, using e.g the batch date
time functions from Ritchie Lawrence batch library available at http://www.commandline.co.uk/lib
A filename derived from the time and date is only guaranteed to be unique
if:
- the clock is never turned back, and if:
- such files are NEVER created outside of the script that uses the feature.
I would tend to add a random field (a la %random%), and check for existence
before assuming otherwise. If the file already existed, the script would
just re-build the name and try again.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.