Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: how to run page


Message #1 by "John Sen Yong" <yjohns@t...> on Sat, 23 Jun 2001 04:06:10 +0800
i make an asp file  to run daily in the scheduled task

this file actually is to check whether the booking date is 7 days from today

if it is , an email will be generated and sent to the user automically.

the problem is how can i run this page because although i make this file to

run daily..but it only open the file in microsoft interdev ,it

does not run it....

please help..i need it to do my project





Message #2 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Mon, 25 Jun 2001 10:44:38 +0100
An ASP is only executed by the ASP parser when it is requested through 

http.

You cannot "run" an ASP simply by double clicking it, and so neither 

can it

be scheduled to run.  VBScript code can be executed on the server 

without

using ASP, by using Windows Script Host.  Rename your ASP as .vbs, 

remove

any references to the ASP object model, and you have a WSH file.



You can run it from the command line using the command



cscript.exe "C:\path\file.vbs"



it can then be scheduled using the AT command



(just type AT /? into the command line for help)







-----Original Message-----

From: John Sen Yong [mailto:yjohns@t...]

Sent: 22 June 2001 21:06

To: ASP CDO

Subject: [asp_cdo] how to run page





i make an asp file  to run daily in the scheduled task

this file actually is to check whether the booking date is 7 days from 

today

if it is , an email will be generated and sent to the user automically.

the problem is how can i run this page because although i make this 

file to

run daily..but it only open the file in microsoft interdev ,it

does not run it....

please help..i need it to do my project




  Return to Index