Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


converting from hostname to ip

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,61739
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> converting from hostname to ip
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 converting from hostname to ip - 6/23/2008 4:41:34 AM   
  simon

 

Posts: 8
Score: 0
Joined: 6/6/2008
Status: offline
hi guys, thanks for the help in my previous posts.  i figured i'd throw another one out.

So i have a list of the host names of the machines on the network, from net view.

Im wondering how i could convert the host names into ip addresses of the machines.
 
 
Post #: 1
 
 RE: converting from hostname to ip - 6/23/2008 4:50:37 AM   
  dm_4ever


Posts: 2664
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
http://www.visualbasicscript.com/m_42535/tm.htm

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to simon)
 
 
Post #: 2
 
 RE: converting from hostname to ip - 6/23/2008 7:09:14 AM   
  jcarver_14

 

Posts: 31
Score: 0
Joined: 6/4/2008
From: Cincinnati
Status: offline
Hey not sure what output you was looking for so heres a couple i came up w/


      

For the first one just place this script into a folder with a txt file named host.txt.  Each line of the host.txt files should contain one computer name.  This will display a message box for each.




      

This one is going to be a little easier to work with.  Do the same as above but this one will write the information to two text files.  Failed.txt contains all of the computers it could not ping.  Completed gives the computername = ipadress





      

And last but not least the most simple one.  If you make this a vbs file and run it an input box will come up.  Just enter the computername and hit ok.  It will echo the IP address

(in reply to simon)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> converting from hostname to ip Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts