Welcome to my ASP Code Website

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