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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I use ASP for writing a scheduled script?

Status
Not open for further replies.

mit99mh

Programmer
Sep 24, 2002
246
GB
I need to write a script that runs once a week at eg 4'o clock in the morning to send out a batch of emails. The machine the script run on is nt and I was wondering the best approach to tackle this problem.

Any help much appreciated.
 
I've seen it done through creating a service (.dll) that calls an asp page which then sends the emails. The problem you have is that the asp application is only running when someone calls a page - it can't always run and check the time and fire a page at a specific time. Services, which run on the server, are always on (once you start them). I don't know a lot about services, but you could probably have the service itself fire the emails (without your asp page at all). I can email you a .zip file with a visual basic project that posts ("Hello world") to your screen every two seconds (argh!). When you run it, it asks if you want to start the service. -----------------------------------------------------------------
DIM bulb
SET bulb = NEW brain

mikewolf@tst-us.com
 
thanks for replying - any source & instructions would be a massive help.

Cheers

Mick
 
my email

michael.4.holland@bt.com

cheers
 
Zip sent. If you need more help with it, you may need to use the Visual Basic forum.... -----------------------------------------------------------------
"Whether you think that you can, or that you can't, you are usually right."
- Henry Ford (1863-1947)

mikewolf@tst-us.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top