Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ping

Status
Not open for further replies.

misubud

IS-IT--Management
May 29, 2002
25
NZ
need assistance in capturing ip address of named devices
Have list of machine names/Mac addresses, i.e
H050FHGZ0091
H050FHGX0123

need to run ping command and capture associated ip addresses
i.e 10.162.23.236
for each.


alternately, need code to call/run .bat file (which would contain associated ping command)
 
I dont know about the first part of your question, but to run a batch file from code would look something like this:

Shell "C:\YourBatchFile.bat", vbHide

also, if you are in a win nt/2k enviroment you might wanna use a .cmd file instead as it provides for more commands. I dont have time to comment on this now, but you can google it for more info. hope this is something like what your looking for.

JASON
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top