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

calling a script from asp

Status
Not open for further replies.

Grazer

Programmer
Sep 6, 2001
28
0
0
GB
Hello,

does anyone know why this does not work:

<%
dim wsh_object

Set wsh_object = CreateObject(&quot;WScript.Shell&quot;)

wsh_object.Run &quot;wscript c:\hosting\buildaccount.vbs&quot;,1,True

Set wsh_object = Nothing
%>

The script works perfectly from the command line, but when I call it from an asp page, it just thinks for about 5 minutes.

Please help.

Thanks in advance.
 
you can try following code:

Dim wsh_object
Set wsh_object = CreateObject(&quot;WScript.Shell&quot;)
wsh_object.Run &quot;&quot;&quot;c:\hosting\buildaccount.vbs&quot;&quot;,1,True&quot;

 
Thanks for your help, but that still did the same thing. Do you think I might need to change a setting somewhere, like allow server side scripting or something?

Any input is good input.
 
First you need SERVER.CreateObject when creating objects under an ASP.
Second, you need some kind of pernmission (i don';t know what) to start up a Windows Scripting job on the IIS Host. That script would run outside of the IIS Server.
Compare Code (Text)
Generate Sort in VB or VBScript
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top