Guest_imported
New member
- Jan 1, 1970
- 0
Hi there,
I have a *.vbs file that I wish to execute in an ASP page. This is the
code below, and I was wondering if anyone could see anything below
that would explain why the web page would be in a "waiting for reply"
stance since something is executing.
Dim cmdstr
Dim wshellz
cmdstr = "cscript.exe c:\MakeWebSite.vbs -r c:\testdir -h
""whatever.com"" -t ""giuhgighirhi.com"""
set wshellz = Server.CreateObject("WScript.Shell"
wshellz.Run cmdstr, 0, true
set wshellz = nothing
Outside the ASP process the app works fine. The only change in
the code I have to do is to remove the Server. from
Server.CreateObject("WScript.Shell"
line.
I've given the script enough permissions to execute correctly too.
Everyone has permissions to execute the script but I don't know if
there ASP process has the "permissions" for the script to alter IIS
stuff though (that is what the script that is being executed does).
I don't know what else to do. (Lead me in the right direction...
)
Any help will be most appreciated!
Thanxs
Steve Griff
I have a *.vbs file that I wish to execute in an ASP page. This is the
code below, and I was wondering if anyone could see anything below
that would explain why the web page would be in a "waiting for reply"
stance since something is executing.
Dim cmdstr
Dim wshellz
cmdstr = "cscript.exe c:\MakeWebSite.vbs -r c:\testdir -h
""whatever.com"" -t ""giuhgighirhi.com"""
set wshellz = Server.CreateObject("WScript.Shell"
wshellz.Run cmdstr, 0, true
set wshellz = nothing
Outside the ASP process the app works fine. The only change in
the code I have to do is to remove the Server. from
Server.CreateObject("WScript.Shell"
I've given the script enough permissions to execute correctly too.
Everyone has permissions to execute the script but I don't know if
there ASP process has the "permissions" for the script to alter IIS
stuff though (that is what the script that is being executed does).
I don't know what else to do. (Lead me in the right direction...
)
Any help will be most appreciated!
Thanxs
Steve Griff