Support & Docs
Powered by HelpSpot

1.8. VBS Script for Automated Calling of tasks.php and tasks2.php

Some customers have reported problems using Internet Explorer and Windows Scheduled Tasks when calling tasks.php in very short timespans. A customer provided this VBS script as a better solution to calling the tasks.php script.

Place the file (available below) on your server. Change the variables inside the file, primarily the HTTP path to your HelpSpot tasks.php file (ex: http://helpdesk.myco.com/tasks.php). Near the bottom you'll also need to change the from/to email addresses if you want to receive notification when the script fails. Then create a scheduled task as normal to call the vbs script.

Since this file uses Windows libraries and not Internet Explorer to make the HTTP call it is much more reliable.

Tip: To set a scheduled task to run every minute do the following:

  1. Set the task to run daily
  2. At the end of the wizard, select the "Open Advanced properties for this task when I click finish"
  3. Go to the schedule tab and click the advanced button
  4. Check the "Repeat task" box and have the task repeat every minute.
  5. Set the "Until duration" to 23hrs and 59 minutes
Note: This same file can be used for tasks2.php as well, just adjust the URL in the vbs file to point to tasks2.php

Downloads

tasks.vbs

This page was: Helpful | Not Helpful