Bat file to ping


















Improve this question. RJFalconer 10k 4 4 gold badges 39 39 silver badges 48 48 bronze badges. Add a comment. Active Oldest Votes. It's pretty easy, save the following to a [. Improve this answer. George 2. Brian Cook Brian Cook 21 2 2 bronze badges. This is a very cool command. Thank you — Jonny Wright. You can use the start command. For example, to ping the 2 addresses you gave: start ping Quickest way to ping multiple IP addresses Angry IP Scanner This program will ping your specified IP addresses, domain in a window, also display hostname and ports open.

Quick and easy to use rather than separate cmd windows all over the place. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Helping communities build their own LTE networks. Podcast Making Agile work for data science. Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Related 7. Hot Network Questions.

Question feed. I have two batch files to ping all IPs in a text file servers. One of the batch files pings the servers and shows the result on the CMD window. The other batch file pings the servers and shows nothing on CMD windows and after it finished all the pings to servers , it will put them in the OnlineServers. I want the batch file to run pings and show them on screen and put all the online servers in the OnlineServers. And here is the second batch file which shows nothing on CMD window and only output the file after it pings all the servers :.

These is more than servers to check and I add servers to this list every day so its a long list to check. You could simply implement explicit redirection to the con device console. By the way, you actually do not need delayed expansion if you use the if ErrorLevel syntax:.

The batch writing to the file will have to breakoff the enclosing parentheses with the redirection and reset the file at start. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow.

Learn more. Batch file to run ping command and output to text aswell Ask Question. Asked 5 years ago. Active 1 year, 1 month ago. Viewed 7k times. I want to mix this thing. Improve this question. Aria Fathi Aria Fathi 39 1 1 silver badge 7 7 bronze badges. Add a comment.



0コメント

  • 1000 / 1000