I have an application that pipes 'net view' to a file ("net view > machine.txt") so that I can get a list of all machines on-line. But some machines in this list are no longer on-line, because of the delays of the master browser.
I would like a way to check if a machine if accessible before I attempt to execute a DIR() function on the machine. Because the DIR() will take about 50 sec. to timeout if the machine is not accessible. Is there maybe an API call for this?
I can ping a host and get a "Timeout" response rather quickly. But how to do this in VB? Is there an API call that does want ping does?