F
ferg
People; i'm from argentina so , sorry, but my english isn´t good...
Now, the question is; I'm trying to run a *.bat program on an ASP page,
with the wsh script, but i can´t do it... because i obtain an error code (5
access denied)
I let you the code that i´m using, so you can help me
Dim wshell, proc set wshell = server.createobject("wscript.shell")
prg="%comspec% /c net stop dns"
set proc = wshell.exec(prg)
Do While proc.Status < 1
Loop
Response.Write prg & "<br>"
Response.Write proc.StdOut.ReadAll & "<br>"
Response.Write proc.stderr.readAll & "<br>"
set wshell = nothing
.....
I tried besides, the "run" methon instead of "exec", but the result is the
same...
so ... help!!!
I have gave permissons (total control) to IWAM and IUSR users on the page
folder, and on cmd.exe program and net.exe program; but there isn´t case, it
doesn´t work...
Thanks for your suggestions; and sorry about my english... If you don´t
understand my , let me knot that, and i try to explain better...
Ferg
Now, the question is; I'm trying to run a *.bat program on an ASP page,
with the wsh script, but i can´t do it... because i obtain an error code (5
access denied)
I let you the code that i´m using, so you can help me
Dim wshell, proc set wshell = server.createobject("wscript.shell")
prg="%comspec% /c net stop dns"
set proc = wshell.exec(prg)
Do While proc.Status < 1
Loop
Response.Write prg & "<br>"
Response.Write proc.StdOut.ReadAll & "<br>"
Response.Write proc.stderr.readAll & "<br>"
set wshell = nothing
.....
I tried besides, the "run" methon instead of "exec", but the result is the
same...
so ... help!!!
I have gave permissons (total control) to IWAM and IUSR users on the page
folder, and on cmd.exe program and net.exe program; but there isn´t case, it
doesn´t work...
Thanks for your suggestions; and sorry about my english... If you don´t
understand my , let me knot that, and i try to explain better...
Ferg