How To Setup Windows Scheduled Task To Access a Web Page (.htm, .asp, .aspx, ...) Periodically


How do I access a web page periodically in your Windows 2008/2003 Server?


You can write a .vbs script file and schedule it as Windows task (CScript C:\YourScript.vbs //H:CScript).


        Call Send_HTTP_Request()

        Sub Send_HTTP_Request()

                'Force the script to finish on an error.
                On Error Resume Next

                'Declare variables
                Dim objRequest
                Dim URL

                Set objRequest = CreateObject("Microsoft.XMLHTTP")

                'Put together the URL link appending the Variables.
                URL = ""

                'Open the HTTP request and pass the URL to the objRequest object
       "POST", URL , false

                'Send the HTML Request

                'Set the object to nothing
                Set objRequest = Nothing

        End Sub

Add Feedback