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

Running ASP (VBScript) code as an object on IIS?

Status
Not open for further replies.

vituja

Programmer
Oct 1, 2003
30
US
Hi All,

I have some ASP code (not dot net) that can take a while to run. Sometimes the web page times out. Can the VBScript code be placed as an object inside the IIS server and executed that way?

Any help would be appricated. Thanks.
 

You can change the value of the script timeout

<% Server.ScriptTimeout = 150 %>

default value is 90
 
I've tried making the scripttimeout 32000 but it doesn't seem to do anything. Could VBScrit code be compiled and run at the server when asked.
 
vituja,

You can run another vbscript procedure from the web page.

Dim WshShell, oExec
Set WshShell = Server.CreateObject(&quot;WScript.Shell&quot;)
Set oExec = WshShell.Exec(&quot;cmd /C c:\mydir\myscript.vbs&quot;)


fengshui_1998
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top