Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
Use standard NT DOS functions to automatically name log files with the current date and time.
January 26, 2003
In Reader to Reader: "Automatically Name Log Files with the Current Date and Time" (February 2002, InstantDoc ID 23468), Bret Bennett presents a script that uses ntdate.exe to automatically name log files. I have a simpler method that uses the standard Windows NT DOS date and time functions. Listing 1 shows my script.
—George Christie
[email protected]
You May Also Like