How to open web page through windows scheduler using .bat file and vb script

We can open and close any webpage with time internal. This kind of scenarios are helpful for the website test.First we will create visual basic script file after that we will execute that script with .bat file.

After creation of below files just click on .bat file. browser will open with site After that browser will close.

d:\SMS\SMS.VBS file

Call CallUrl()
Sub CallUrl()
        On Error Resume Next
        Dim objRequest
        Dim URL
        Set objRequest = CreateObject("Microsoft.XMLHTTP")
        URL = ""
 "POST", URL , false
        Set objRequest = Nothing
End Sub

.bat file
cscript.exe "d:\SMS\SMS.VBS"

After above steps just attach .bat file to windows scheduler. 
Share this post :

Post a Comment

Please give your valuable feedback on this post. You can submit any ASP.NET article here. We will post that article in this website by your name.

Support : Ranga Rajesh Kumar
Copyright © 2012. ASP.NET Examples - All Rights Reserved
Site Designed by Ranga Rajesh Kumar