有时候检测网络要用到cmd下的ping
ping www.baidu.com -t
保存为BAT直接打开是不是?
@echo off
ping www.baidu.com -t

一直不成功 ,忘记怎么写了。