VBScript That Datastamps Log Files

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
Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish