Results 1 to 10 of 10
  1. #1
    ABW Ambassador
    Join Date
    January 18th, 2005
    Posts
    1,663
    I need to connect to an asp page on my site daily to update datafeeds. Got it all working except the simplest & most basic part: how do I use Windows 2000's scheduled task function to open the browser and connect to the page? This site is on a hosted server, not my own. All it needs to do is connect to the page and the script does the rest.

    Thanks,
    Wayne

  2. #2
    Member
    Join Date
    January 18th, 2005
    Posts
    99
    Do you need help with the batch file or the windows task scheduling?

    I've got it running like that on a computer at home. If nobody else gets it for you before I get home tonight, I'll post it.

  3. #3
    ABW Ambassador
    Join Date
    January 18th, 2005
    Posts
    1,663
    Hi Zoe,

    I can set Task Scheduler to open the browser at a specified time but I'm not sure how to point it at the specific page that triggers the update. The wizard wants a program to run. The program is the browser but I need to point it at the URL that runs the script.

    I could set the browser to open this page by default but then I'd be updating all day long.

    Wayne

  4. #4
    Member
    Join Date
    January 18th, 2005
    Posts
    99
    You'll need to have the scheduler launch a batch file where you call Internet Explorer and pass it the URL. I have it at home but I got it off a Google search.

  5. #5
    Member
    Join Date
    January 18th, 2005
    Posts
    99
    This is what I have in my bat file. I tried putting in more than one line, but it doesn't seem to execute more than one line. But I haven't had time to play with it.

    "C:\Program Files\Internet Explorer\IEXPLORE.EXE" http*//www.we_site.com/datafeed/sffdatafeed.asp?ID=41

    This will open IE and go to that web site. The above is all on one line.

  6. #6
    ABW Ambassador
    Join Date
    January 18th, 2005
    Posts
    1,663
    Thanks Zoe,

    That string structure works great. Opens the page and runs the update scripts! I may get a vacation this year. Thanks!

    Wayne

  7. #7
    Member
    Join Date
    January 18th, 2005
    Posts
    99
    You may find this useful too. I bought WinZip because it supported gzip files and it had command line ability. BUT when I tried to do it in a batch file, it didn't work.

    So I emailed tech support and they said there were undocumented command line references. Here they are, might be useful when you need to automate BeFree and Linkshare.


    Here is some information about the undocumented command line options
    in the current release of WinZip.

    *** Be sure to read the Notes section below for important restrictions ***
    *** and usage requirements ***

    WinZip supports command line options to add and extract from files.

    Adding files:

    The command format is:

    winzip32.exe [-min] action [options] filename[.zip] files
    where:

    -min specifies that WinZip should run minimized. If -min is specified,
    it must be the first command line parameter.

    action

    -a for add, -f for freshen, -u for update, and -m for move. These
    actions correspond to the actions described in the section titled
    "Adding files to an Archive" in the WinZip Command Line Support Add-On
    Help.

    options

    -r and -p correspond to the "Include subfolders" and "Save Full Path
    Info" checkboxes in the Add and Drop dialog boxes. -ee, -ex, -en,
    -ef, -es, and -e0 options determine the compression method: Maximum
    (enhanced deflate, Maximum (portable), Normal, Fast, Super fast, and
    no compression. The default is "Normal".

    -s allows specification of a password. The password can be enclosed
    in quotes, for example, -s"Secret Password". Note that passwords are
    case-sensitive.

    -hs option allows hidden and system files to be included.

    filename.zip

    Specifies the name of the Zip file involved. Be sure to use the full
    filename (including the directory).

    files

    Is a list of one or more files, or the @ character followed by the
    filename containing a list of files to add, one filename per line.
    Wildcards (e.g. *.bak) are allowed.

    Extracting Files:

    The command format is:

    winzip32.exe -e [options] filename[.zip] directory

    where:

    -e is required.

    options

    -o and -j stand for "Overwrite existing files without prompting" and
    "Junk pathnames", respectively. Unless -j is specified, directory
    information is used.

    -s allows specification of a password. The password can be enclosed
    in quotes, for example, -s"Secret Password". Note that passwords are
    case-sensitive.

    filename.zip

    Specifies the name of the Zip file involved. Be sure to specify the
    full filename (including the directory).

    directory

    Is the name of the directory to which the files are extracted. If the
    directory does not exist it is created.

    Notes:

    * VERY IMPORTANT: Always specify complete filenames, including the full
    path name and drive letter, for all file IDs.

    * To run WinZip in a minimized inactive icon use the "-min" option.
    When specified this option must be the first option.

    * Only the above operations are supported.

    * Enclose long filenames on the command line in quotes.

    * NO leading or trailing blanks, or blank lines for readability, are
    allowed in list ("@") files.

    * The action and each option on the command line must be separated
    from the others by at least one space.

  8. #8
    ABW Ambassador
    Join Date
    January 18th, 2005
    Posts
    1,663
    Thanks for this, Zoe. zipped files are the next step. I'm automating the updates to the easier http datafeeds first, then the zipped & ftp ones.

    Wayne

  9. #9
    Newbie
    Join Date
    April 20th, 2008
    Posts
    1
    To run a specific internet page from scheduled tasks in Windows XP
    Open scheduled tasks.

    Right click anwywhere in the page.

    On the menu select "New" then select "Scheduled Task".

    A "New Task" appears, right click it and click "Properties",

    A dialog box opens with the "Task" tab selected.

    In the empty "Run" box paste:

    C:\PROGRA~1\INTERN~1\iexplore.exe mediaweb.musicradio.com/player/default.asp?s=21&e=0

    Note:

    1) There is no need for the http:// part of the web address (URL), just the web address from where it starts after http://)

    2) There is no need for quotation marks.

    3) There is no need to fill the "start in" box, this will auto-fill when you click "Apply" based on what you have put in the "Run" box.

    4) If you want to put in your own address just delete everything after iexplore.exe and put in your choice of address (without the http:// part). Make sure you have a space between iexplore.exe and the beginning of the address as shown above.

    Click on the schedule tab at the top of the dialog box to schedule when you want your task to run.

    Click on the settings tab to set up the task...see the bottom left of the settings tab: the computer can wake to do the task)

    Click "Apply" at the bottom right of the dialog box and then put in your account password.

    Click OK.

    :-)

  10. #10
    ABW Ambassador Boom or Bust's Avatar
    Join Date
    February 3rd, 2008
    Posts
    3,955
    Quote Originally Posted by www.myspace.com/xxe24iz
    Open scheduled tasks....
    Sheesh!
    Bumped a 2004 thread...



    X

  11. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Ut oh - Scheduled site downtime on CJ
    By MeeMaw in forum Commission Junction - CJ
    Replies: 2
    Last Post: May 23rd, 2006, 02:54 PM
  2. Scheduled site maintenance
    By Trust in forum Commission Junction - CJ
    Replies: 4
    Last Post: May 14th, 2005, 02:58 AM
  3. Scheduled site downtime
    By Infoseeker in forum Commission Junction - CJ
    Replies: 27
    Last Post: June 22nd, 2004, 05:08 AM
  4. Scheduled Site Downtime
    By Trust in forum Commission Junction - CJ
    Replies: 16
    Last Post: October 5th, 2003, 07:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •