sumit Posted August 28, 2007 Share Posted August 28, 2007 guys I need a script for finding ip address when computer name is known ( for a network ). Please give any suggestions ... Link to comment Share on other sites More sharing options...
Toady Posted August 28, 2007 Share Posted August 28, 2007 TCPNameToIP ( name ) in help file. www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding Link to comment Share on other sites More sharing options...
andyvl Posted August 28, 2007 Share Posted August 28, 2007 ping it (you can use doscommands) then investigate the output func _ping($computername) local $result $ping_PID = runwait(@comspec & " /c ping " &computername, '', @sw_hide, 2) while 1 $pingresult = stdoutread($ping) if @error then exitloop return -1 endif if $pingresult then $result $=$pingresult else sleep(10) endif wend return $result endfunc then it's just stringmanipulation on the returnvalue Link to comment Share on other sites More sharing options...
andyvl Posted August 28, 2007 Share Posted August 28, 2007 TCPNameToIP ( name )in help file.this is indeed easier then mine Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now