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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Computer turned on

Status
Not open for further replies.

cdukes

Programmer
Aug 6, 1999
286
FR
Does anyone know how, given the name of a computer on an NT domain, to determine if the computer is currently connected to the domain ( ie. is turned on). Any examples would be appreciated.

Chris Dukes
 
A very quick way (assuming that you have the IP address) would be to Ping the machine. I wrote a FAQ on how to ping programatically . . . check it out at faq222-607
- Jeff Marler B-)
 
Jeff,

Cheers, that was almost exactly what I wanted without going through the API pain. I have tried it using the WinSock Control in VB, but if the machine is not on the network, the control takes about 20 seconds to error with no way of changing the timeout.

As I am only trying to populate a tree view with the machines that are available, 20 seconds per machine that
is not available takes rather a long time.

Cheers again,

Chris Dukes
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top