We have a script that runs, and we want to write the output of that batch file into a log file. As of right now the script runs, and writes to the log file. We'd like to have the script create a new file if previous log file exists.
Example:
Script runs, writes to log.log
Script runs again, sees that log.log already exists, so it writes to log1.log (log2.log, log3.log etc.)
What can I do to get this done?
Thanks! ________________________________________
Check out
Example:
Script runs, writes to log.log
Script runs again, sees that log.log already exists, so it writes to log1.log (log2.log, log3.log etc.)
What can I do to get this done?
Thanks! ________________________________________
Check out