Thank for the quick response, Shift-3.
The script fired up but the Audit did not run.
I am trying this script on a a machine that has an audit file that is 5 days old.
Two variables I should have included but didn't:
1) The audit file for Line 3 is a hidden file on the local C: (I have hidden files shown in my view)
2) The batch file for Line 4 is located on the network; I entered \\Servername\Folder\file.b
Main Topics
Browse All Topics





by: Shift-3Posted on 2009-10-06 at 13:29:32ID: 25509595
Paste the script below into a text file with a .vbs extension. Customize the value of the strAuditFile variable on line 3 with the location of the file to check the date of. Customize the value of the strAuditScript variable on line 4 with the location of the batch script to run. Customize the value of the strServerToPing variable on line 5 with the name of the server to ping.
Running the script will check the file's age, ping the server, and run the script if the conditions are met. Once you have tested it successfully, set up a scheduled task to run it every hour.
Select allOpen in new window