ASP Is Fun

Learning ASP
Free ASP Course
ASP Basics
ASP Functions
SQL Commands
Sample ASP Code


Servers / Setup
ASP Host Reviews
ASP Server Setup
ASP Error Tips


Contract ASP
ASP Development

Search For:


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



Bookmark this site so you can reference it any time you have ASP questions in the future!

Add ASP+Is+Fun+Website+ to Twitter Add ASP+Is+Fun+Website+ to Facebook Add ASP+Is+Fun+Website+ to MySpace Add ASP+Is+Fun+Website+ to Del.icio.us Digg ASP+Is+Fun+Website+ Add ASP+Is+Fun+Website+ to Yahoo My Web Add ASP+Is+Fun+Website+ to Google Bookmarks Add ASP+Is+Fun+Website+ to Stumbleupon Add ASP+Is+Fun+Website+ to Reddit



 


Get Emails when this Site is Updated



ASP Ebooks | Free ASP Course |
All content copyright © 2013 Minerva WebWorks LLC. All rights reserved.

Exploring Believability

Free Newsletter!

Ebooks
Intro to ASP
ASP SQL DB
ASP Members
ASP Shopping


Introduction to ASP

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



affiliate_link