Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

A batch process opens multiple CMD windows at the same time to execute PING commands

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Recently, I have encountered frequent sudden power outages, but there is no UPS, so it is really annoying that the server is turned on automatically when it is turned off. Do not want to run the computer room from time to time to see if the machine has started, suddenly thought that if I open multiple CMD windows in WINDOWS, PING server, if normal, it is turned on, if not normal, then go to the computer room to press the power. Because there is no good study, batch processing does not know much, so can only find Baidu. Seven look for it, and finally get a preliminary satisfaction, as shown in the picture below.

Now also copy the content to facilitate yourself and everyone:

@ echo off

Cd\

Cls

Start cmd / c "TITLE Ping Server 192.168.8.6 Server & & color 3e&&mode con cols=56 lines=10&&ping 192.168.8.6-t"

Start cmd / c "TITLE Ping Server 192.168.8.5 Server & & color 3e&&mode con cols=56 lines=10&&ping 192.168.8.5-t"

Start cmd / c "TITLE Ping Server 192.168.8.30 server & & color 3e&&mode con cols=56 lines=10&&ping 192.168.8.30-t"

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report