I am using the following to del an old log file that a batch file creates:
if exist directory\log del directory\log
What I would like to know is how to create a new log each time the batch file is ran with the date and time included in the file name. So I have a running count of each time the batch file was ran and when it was ran.
Any help would be appreciated.