Monday, September 30, 2019

Open a web page url by using Windows Task Scheduler

1. Task Scheduler in Windows

  • Write a VBS script, ex: schedule.vbs
  • Schedule the VBS script


Below the schedule.vbs content:

Call LogEntry()

Sub LogEntry()

        On Error Resume Next

        Dim objRequest
        Dim URL

        Set objRequest = CreateObject("Microsoft.XMLHTTP")
        URL = "http://www.your_website.com/filename.aspx"

        objRequest.open "POST", URL , false

        objRequest.Send

        Set objRequest = Nothing

End Sub

Just replace the URL variable by your url you want to call and then setup the Scheduled Tasks to run the VBS script at the time specified.

No comments:

Post a Comment