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

Automating execution of ASP/ASP.NET scripts

Status
Not open for further replies.

jasonsalas

IS-IT--Management
Jun 20, 2001
480
GU
Hi all,

I've built a single-function script in ASP.NET which scrapes info off of remote page(s), and then stores this info in a variable, which it then e-mails to specified users who are too lazy to look for it themselves on the Web. :)

But that part's irrelevant...what I'm trying to do is automate the execution of the script, without having to have someone manually browse to the URL just to have the script fire. I've been trying to integrate this with Windows Task Scheduler as per so that the script could be called in the background at specified intervals, but for some reason, the Windows script never fires, whether if scheduled, or if called manually.

I'm running this off of a Win98 box with Windows Script Host 5.6, but the dang thing isn't running. Any suggestions?

Thanks!

Jas
 
fyi... the .Net Framwork does not run on win98.

As far as running vb script that should not be a problem. Try creating a simple vb script with just a message box and see if that works. If it works starting adding your code bit by bit. My guess is that a part of the code is having a problem..

hth
 
Thanks for the input...I'm just using the VBScript file to browse to a page written with ASP.NET over the Web, so I'm not running the .NET Framework locally on my machine.

I'm using the following code as GET_WEATHER.VBS:

'Create an instance of IE
Dim IE
Set IE = CreateObject("InternetExplorer.Application")

'Execute our URL
ie.navigate("
'Clean up...
Set IE = Nothing

It doesn't fire in Win98's Task Scheduler, or when I double-click on it. Any ideas?
 
Are you running anti-virus software that is causing it?
Can you right click on the file in explorer and select run?

or try from start..run wscript.exe myfile.vbs

 
Naw...run isn't one of the options in Explorer for the .VBS file...and can't execute it from the command-line. Double-clicking on it, I can see the hourglass very briefly, but nothing happens. My modem sends/recieves a tiny bit of data, but that's about it. Nada.

Can you try running it on your end (I'm trying rto execurte it on a Win98 box), and see if it works for you?

Thanks!
 
Thanks a LOT! Your code worked beautifully! Much appreciated! :)

Jason
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top