如何使用asp关机重起远程服务器?
如何使用asp关闭、注销、重起远程服务器?
服务器是 win2000 的
我把 winxp 里的 shutdown.exe 复制过来。使用其关机 重起 挺不错的 但是
在asp里调用 就不行了,返回0 是执行成功的意思 为什么机器没反应呢?
文件位置在 c:\shutdown.exe
asp代码如下
<%
Set WinShell = server.CreateObject("Wscript.Shell")
iss=WinShell.Run("c:\shutdown.exe -r -f",0,true)
response.write iss
%>
执行后 iss 是 0 表示成功,但是 机器没反应
有什么办法利用 asp关机(win2000)呢? 调用外部程序也行!