ASP Is Fun

Learning ASP
Free Course
Basics
Functions
SQL Commands
Sample Code

Servers / Setup
Host Reviews
Server Setup
Error Tips

Contract ASP
Development

Intro to ASP



 


Scheduling an ASP Page



The key to having an ASP page run on a schedule is to realize that, at its core, ASP is simply Visual Basic. So if you rename your .ASP page to .VBS and make a few simple changes, you can toss that .VBS into a regular Windows schedule and it'll run properly.

So, what are these changes?

NO DELIMETERS
You must remove all <% and >% types of commands in your code. That is, EVERYTHING must be ASP code. Make sure from start to finish that everything in the file is straight ASP.

NO SERVER STATEMENT
Make sure you change all Server.CreateObject to be just CreateObject.

SCHEDULE THE RUN
Go into the control panel and start up the Scheduled Tasks area. There's a link to create a new task. Link to your VBS file, put in when you'd like it to run, and enjoy!
ASP Server Setup Information


ASP Main Page | ASP Ebooks | Free ASP Course | Contact Lisa
All content copyright © 2008 Minerva WebWorks LLC. All rights reserved.

French Wedding


Free Newsletter!

Ebooks
Intro to ASP
ASP SQL DB
Members
Shopping


Introduction to ASP

Romance Tips
Irish Romance
Italian Romance
French Romance

ASP Poll
How do you handle 500 errors?
I don't
Page does nothing
Displays error
Emails error