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

Posted on 2009-07-01
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 250 total points
ID: 24752603

Assisted Solution

BALMUKUND KESHAV earned 250 total points
ID: 24752770

Author Comment

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

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Recently I finished a vbscript that I thought I'd share.  It uses a text file with a list of server names to loop through and get various status reports, then writes them all into an Excel file.  Originally it was put together for our Altiris server…
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  ( Here (http…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

729 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