This was fun. My own batch logging, never even thought about it before, but it seems to work.
I just put this echo redirection into the batch, and used these time and date enviroment variables I found on the web.
ECHO >>C:\WhatTimeBatch.log The Dingleberry Batch Was run at %TIME% %DATE%
The single >
would redirect to a file and have only one entry, the >>
will append. Potentially
you could have a simple echo like this in every batch with a different tag, and use the same One log for any batches. Or get extravagent with simplistic error loggin or place tagging by putting it in other places in the batch.
ECHO >>C:\WhatTimeBatch.log The Haldron batch made it to the Copy tag at %TIME% %DATE%
ECHO >>C:\WhatTimeBatch.log The Haldron Batch may have finished the copy at %TIME% %DATE%
ECHO >>C:\WhatTimeBatch.log Test Batch had an error grt0 at the 3rd find %TIME% %DATE%
ECHO >>C:\WhatTimeBatch.log The Check batch got to the 4th Exit at %TIME% %DATE%
the NtfsDisableLastAccessUpdate can be turned back on in windows7.