Java实现关机功能
<br />Set R = CreateObject("WScript.Shell") <br />return=MsgBox ("你确定要重起计算机吗?",49,"注意!") <br />If return=vbOK Then <br />R.run ("%Comspec% /c "& chr(34) & "ping %computername% -n 6&&ipconfig /release&&ipconfig /renew" & chr(34)),0,True<br />End if
转载
2011-01-11 14:56:00 ·
1071 阅读 ·
0 评论