Find the IP addresses of all computers listed in a text file.

Posted on 2009-07-01
Medium Priority
Last Modified: 2012-05-07
Hi guys,

I have a text file that houses a list of computer names.
What id like it to create a hta that:

1) Asks you for a text file
2) Upon clicking a run button, will read that list of computer names
3) Do an nslookup on it (not a PING).
A new file 2 columns wide would be created, with format as:
----------------------------------- ips.txt
Computer  IP Address
serverA    x.x.x.x
serverB    x.x.x.x
serverC    Error
serverD    Error
etc etc

Any help greatly appreciated.
Question by:Simon336697
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

Haris V earned 1000 total points
ID: 24752603

Assisted Solution

BALMUKUND KESHAV earned 1000 total points
ID: 24752770

Author Comment

ID: 24783883
Thanks guys to both of you :>)

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to writing scripts for a Client/Server computing environment it is essential to consider some way of enabling the authentication functionality within a script. This sort of consideration mainly comes into the picture when we are dealin…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question