Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatic actions in ASP

Status
Not open for further replies.

multiplex77

Programmer
Dec 25, 2001
302
SG
Hi,

How can I get my ASP application to invoke an automatic action without user intervention (as long as the server is running)?

E.g., if I want to send out an email on a certain date, without any browser being opened or administrator action. Is there any date/time polling feature that can be written?

Appreciate any help I can get. Thanks!

p.s. this is not for spamming or hacking purposes, it's for a reminder service. :)
 
Given ASP is limited to being called thru browsers, etc, I'd suggest writing a simple VBScript program to do what you're after, and have the microsoft scheduling thingie run it to a schedule. codestorm
Fire bad. Tree pretty. - Buffy
select * from population where talent > 'average'
You're not a complete programmer unless you know how to guess.
I hope I never consider myself an 'expert'.
<insert witticism here>
 
Your best bet is to write a script in VBScript that is authored to be run through Windows Script Host (WSH) as a .wsf file.
Depending on your OS, WSH is probably already installed.
For the scheduling, you should create a .bat file that runs cscript.exe using the .wsf file as input. (Cscript.exe is the command-line component of WSH)
All you need to do is call this .bat file with AT. For help on that type AT help.

Heres a link to an article on WSH.
Hope that helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top