• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: batch code to list ip addressess that do not ping

Resolved: batch code to list ip addressess that do not ping

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I am using the code below to list ip addresses from a list of computer names on list.txt, but they have to be pinging to list. How can I edit the code to show these IP addressess that do not ping also?
list.txt contains the following:
enter image description here
and
Results.csv will populate
enter image description here
but it will not populate IP address for PCWINDATA103 because it is not pinging but I know an IP exists

Answer:

Force a custom output in case findstr doesn’t find Reply (take care of “tokens=3”):

If you have better answer, please add a comment about this, thank you!

batch-file ip-address ping
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: How can I modify formData before sending it?

01/04/2023

Resolved: How to efficient create SimpleITK image?

01/04/2023

Resolved: How can I write CSS selector(s) that apply to table rows for all td elements on that row after a td with a certain class?

01/04/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.