如何设置PING内网的1部机

发布时间:2024-05-16 07:05 发布:上海旅游网

问题描述:

单击Command1后 PING 192.168.0.13 如果通则 MSGBOX"通过"

这样的代码要怎么做? 尽量简单点,能PING到就好了``

问题解答:

ping 192.168.0.13 >> ip1.txt
-
type ip1.txt | find "out" && echo --------------请检查您的网络-----------------
type ip1.txt | find "unreachable" && echo -------您的网络连接被禁用----------
type ip1.txt | find "ms" && echo ---------恭喜,您的网络连接正常----------

以上是批处理,用VB可以生成,然后用VB读取那个IP1.TXT,找到我上面写的关键字就可以了

热点新闻