<pre id=\"best-answer-content\" class=\"reply-text mb10\">VBS代码如下:
网络不通后自动重启:
\'═════代═══码═══开═══始═════
strMachine = \"<a href=\"http://www.baidu.com\" target=\"_blank\">www.baidu.com</a>\"
set ws=CreateObject(\"wscript.shell\")
Set objPing = GetObject(\"winmgmts:{impersonationLevel=impersonate}\").ExecQuery(\"select * from Win32_PingStatus where address =\'\" 0 Then
ws.run \"cmd /c shutdown -r -t 0\",0
End If
Next
\'Created By escortmnm from VBS团队
\'═════代═══码═══结═══束═════