自动ping多个ip地址批处理

  • 9
  • 19,985 views
  • A+
所属分类:Windows

春节同事要值班,每天要ping几个地址看看网络是否通,为了方便同事做了个批处理,参考百度经验。
1.新建立文本TXT文件。
2.将下面复制进文本文件,IP地址根据实际情况修改,rem代表注释。

cd C:\
rem 视频监控
ping 192.168.1.5
rem 服务器1
ping 192.168.1.10
rem 服务器2
ping 192.168.1.20
rem 服务器3
ping 192.168.1.30
pause

3.另存为ping.bat文件,双击执行则可以检查多个IP地址网络状态。
PS:为什么要加cd C:\,因为不加这个打开批处理就会一直显示循环不能正常显示。

weinxin
我的微信公众号
我的微信公众号扫一扫

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

目前评论:9   其中:访客  0   博主  0

    • 李明 李明 3

      Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

      真的很方便,谢谢分享!

        • 厘米 厘米 9

          Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

          @李明 嘿嘿,有用就好

        • 学史博客 学史博客 2

          Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

          谢谢分享啦。

            • 厘米 厘米 9

              Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

              @学史博客 嗯嗯

            • 同盟源 同盟源 7

              Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

              卧槽,学习了,这个很diao

                • 厘米 厘米 9

                  Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

                  @同盟源 为了工作方便,嘿嘿

                • BigCat BigCat 1

                  Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

                  pinginfoview也不错 预计一下

                    • 厘米 厘米 9

                      Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

                      @BigCat 嗯,pinginfoview我已经分享过了,这个主要是给办公室同事用的,点下鼠标就行了~

                    • 小子 小子 4

                      Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

                      不太懂啊、