Subscribe to Windows IT Pro
February 14, 2001 12:00 AM

VBScript That Datastamps Log Files

Windows IT Pro
InstantDoc ID #19621
Rating: (0)
Downloads
19621.zip

For administrators who manage applications that generate accumulative log files, I have a way to rename a file by date. For example, Oracle creates an Alert log file that can grow quite large. I wrote a VBScript routine, which Listing 1 shows, that timestamps the log file and renames it with a filename that reflects the date Oracle created the log. The following wrapper batch file calls the script in Listing 1 so that you can use the At command to schedule the script to run

cscript datefile.vbs //nologo

Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.