Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 13th, 2005, 08:37 AM
Registered User
 
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default Auto Running a script.

How do i run ASP script automatically, say daily at 12:00 midnight.
one way is that i can put my application open on server and keep timer in that, but I think it may be harmful at some piont, + it consumes some application memory + if server gets crashed it may harm at some point.

Is their any other way??

Thanks in advance.

 
Old July 17th, 2005, 02:07 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

You can create a .vbs file and schedule this to run daily at 12:00 midnight.

Om Prakash
 
Old July 18th, 2005, 05:08 AM
Registered User
 
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default

How do I schedule it to run at 12:00 midnight?
Thanks in advance.


 
Old July 19th, 2005, 06:14 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Add it to the OS's schedule task, under control panel.

"cscript <full path>\test.vbs"

Should be what you should be using for scheduling a vbs file, else put this under a .bat file and schedule the batch file there.

Hope that helps.
Cheers!

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto Update of script file.... rupen Javascript How-To 2 November 17th, 2006 11:03 AM
Running Script of 2005 to 2000 prashantlakhlani SQL Server 2000 0 August 24th, 2006 09:14 AM
problem with auto login script to MSDE cmedley007 Access VBA 1 July 8th, 2004 11:01 AM
How to write in SQL language for auto running numb Jane SQL Language 1 November 22nd, 2003 12:37 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.