I have to get IP of webpages that I'll deliver from txt file: for example txt file looks like:
google.com
yahoo.com
toyota.com
bmw.com
etc...
I'll have to get something like
81.177.116.172
11.127.114.122
etc..
or
81.177.116.172 - google.com
11.127.114.122 - yahoo.com
I know that I can use
ping websiteurl.com > ping.txt
but i want to check like 2000 pages. Please advice how to do it the fastest way, and how to deliver line from txt file as parameter to ping. Thanks
Next updated and commented code snippet is faster than code in my original answer:
Data:
Output (run from an open
cmd
window):Beautified output: