Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7862209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T23:02:31+00:00 2026-06-02T23:02:31+00:00

Is it possible to create a batch-file which opens firefox, runs a website and

  • 0

Is it possible to create a batch-file which opens firefox, runs a website and then closes firefox again?

Something like:

@echo off
start firefox http://.....

This is where I am stuck… It needs to close firefix again when the website is finished loading.

It is used to run a maintenance-script every night at 23:59.
The script is based locally, but one cannot run a asp-file without using a server, so I have placed it as a website.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T23:02:34+00:00Added an answer on June 2, 2026 at 11:02 pm

    Adapted from an article I wrote on aspfaq.com years ago.

    Use the AT command and Windows Scripting Host (or the more rudimentary task scheduler) to schedule a VBS file at certain intervals. 
     

    First, change the ASP to a VBS file. This is accomplished by (1) changing the extension to VBS; (2) changing all Server.CreateObject calls to CreateObject; and, (3) removing all <%%> delimiters and any browser-destined code (for example, response.write statement or client-side HTML). I didn’t run into any further complications, but YMMV. 
     

    You store the VBS file in the filesystem, and use the AT command to schedule it (this actually schedules its execution with Windows’s schedule service). At a command prompt, you can use AT by itself to see a list of tasks currently in the schedule. You can use AT /? to find out all its syntax possibilities. 

    For example, to get a file to run every weekday at 9:00 am, I launch this batch file (the first line clears existing entries): 
       

    at /delete /y 
    at 9:00 /every:m,t,w,th,f d:\net\shared\getdata.vbs      
    

    Notice there is no web server involved; the file is accessed directly through the file system. Once I got over the “a user has to be logged in” and “the tasks have to be reset when rebooted” hurdles (both of which I believe are problems with the particular machine that is not under our control), all has been running fine for me. 

    For an example of using WSH, CDONTS and the Task Scheduler to send out e-mails on a regular basis, see KB #221495. 

    If all you are doing is database work in SQL Server, you might consider using a job. This will allow you to keep all the processing of the job within your database, and prevent the complications associated with multiple systems, connections, and adapting ASP code to be non-ASP-like in behavior.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So here's the dealio. I would like to create a simple batch file that'll
Is it possible to create a batch file to copy a folder to another
I like to create a batch file (winxp cmd) that recursively goes through a
Is it possible to create a batch file with a bunch of commands (commands.bat)
Hi it'd like to know if it's at all possible create a parametric equalizer
Possible Duplicate: Create Excel file in Java How to save output in excel format
Is it possible to create a custom route for GDirections to walk around? Like
I wanted to run a .cmd file from Java. I have something which works
I am trying to create a simple batch file that will replace a line
I am wondering if there is any way to create a batch file that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.