
CODE: [Copy to clipboard]:start
::把这个IP改成你用来检测网络的地址,例如网关
ping 10.10.37.254 -n 1 > nul
::-t 后面的数字就是等待多少秒后重启
if %errorlevel% neq 0 shutdown -r -t 300
goto :start
CODE: [Copy to clipboard]:start
ping 10.10.37.254 -n 1 > nul
if %errorlevel% neq 0 (
shutdown -r -t 300
goto :end
)
goto :start
:end
| Quote: | |
|
| Quote: | |
|

| Quote: | |
|
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |