schedule a task for internet explorer to visit a webpage throughout the day

Posted on 2009-12-22
Last Modified: 2012-05-08
using windows server 2008

is this possible

would the
.exe file be iexplorer.exe
and the variable be
Question by:rgb192
    LVL 7

    Expert Comment

    Should be able to just run the task to open from "C:\Program Files\Internet Explorer\" to launch iexplore.exe and hit the web page. Here is the site that will allow you to do that running a script to call upon IE to open the page

    LVL 21

    Expert Comment


    Just simply create a task from schedule task and give it this parameter to run
    "C:\Program Files\Internet Explorer\iexplore"
    Make sure that iexplorer path is correct as per Windows 2008.

    The above is the simple method, but the best method which for running certain webpages we personally use Wget for Windows, also works with Windows 2008

    Faraz H. Khan

    Author Comment

    windows server 2008

    how do i find a program that will do this

    not sure if i have vb
    not sure how to use vb... where is it

    One frequent question I see in the newsgroups is "How do I schedule a task to run in IIS?   This article discusses one technique using a VBS Script and Windows Task Scheduler.    Using Windows Task scheduler allows custom jobs to execute without having to stay logged into a server.    You can use this technique to request web pages frequently on a timed basis.  This keeps the page in-memory providing a better performance.   This could also request web pages to perform other administrative tasks.  
    Here are steps to get started.
    Write your VBS Script
    Develop the webpage to process the HTTP Request
    Create / Add table to database to track logging
    Schedule the VBS Script
    Write your VBS script
    The script makes an HTTP request to a webpage on a timed basis.  (I.E. every 5 minutes).
    Call LogEntry()
    Sub LogEntry()
            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
    Track.aspx webpage
    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="tracklog.aspx.vb" Inherits="Tracklog" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
    <html xmlns="" >
    <head runat="server">
        <title>Log Page</title>
    <form id="form1" runat="server">
    Tracklog.aspx.vb code behind
    Imports System.Data
    Imports System.Data.SqlClient
    Imports System.Configuration
    Partial Class Tracklog
        Inherits System.Web.UI.Page
            Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    Put your code in that would process when Track.aspx is requested
           Response.write(Track.aspx was called: & System.DateTime.Now())
           End Sub
    End Class

    Open in new window

    LVL 7

    Accepted Solution

    I think you are confusing VB script as if it were an application. It's not. It's a scripting language that is built into the Windows OS. Looks like you have your VB file (which is a .vbs extension). You can test it by just running it by double clicking the file to make sure your syntax and everything is right (your file looks good but I'm no VB expert, just put your website in where the fields are present)...

    From there just save the file off to a safe location and use task scheduler to run the .vbs file from that location. Once you do that, you can set the scheduling interval in task scheduler to run daily or y0ou can set the refresh interval in the script once the browser window is open...

    Author Comment

    could i save this program as program.vbs
    and run using cmd.exe

    Author Closing Comment

    LVL 7

    Expert Comment

    You can but task scheduler eliminates that extra step by running the file from said location. If you use task scheduler to call upon C:\Windows\System32\cmd.exe and then cd to C:\Location of VB script file, you are adding extra (un necessary) steps to your task.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Want to promote your upcoming event?

    Attending an event? Speaking at a conference? Or exhibiting at a tradeshow? Easily inform your contacts by using a promotional banner in your email signature. This will ensure your organization’s most important contacts are in the know.

    Scenario:  You do full backups to a internal hard drive in either product (SBS or Server 2008).  All goes well for a very long time.  One day, backups begin to fail with a message that the disk is full.  Your disk contains many, many more backups th…
    If you migrate a Terminal Server licenses server inside the 2008 server family, you can takte advantage of the build-in migration tool. If you like to migrate an older 2003 Server (and the installed client CALs) to a 2008 R2 server for example, you …
    This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
    This tutorial will show how to inventory, catalog, and restore media from legacy versions of Backup Exec into both 2012 and 2014 versions of the software. Select Storage from the tabs along the ribbon bar as the top: Ensure the proper storage devi…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now