I have following ASP page to restart IIS web server.
<%
Dim ows
Dim ret
set oWS=server.createobject("WScript.shell"
ret=oWS.Run("F:\wrestart.bat"
if(ret<>0) then
response.write("error <br>"
end if
%>
The wrestart.bat file is working fine. But when I try to execute the wrestart.bat file thru ASP. It is not working.
I believe the problem is once you stop the web server, the ASP will not able to execute next command.
I would appreciate your help if you have any work around.
Thanks,
Dave
<%
Dim ows
Dim ret
set oWS=server.createobject("WScript.shell"
ret=oWS.Run("F:\wrestart.bat"
if(ret<>0) then
response.write("error <br>"
end if
%>
The wrestart.bat file is working fine. But when I try to execute the wrestart.bat file thru ASP. It is not working.
I believe the problem is once you stop the web server, the ASP will not able to execute next command.
I would appreciate your help if you have any work around.
Thanks,
Dave