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

Dir() fails on network 1

Status
Not open for further replies.

lrfcbabe

Programmer
Jul 19, 2001
108
US
Dir("\\comp1\d$\*") is what is failing. I have a list of boxes on the network. If any 2 of the boxes in the list are OFF, not booted up, the second box in the list will fail with error 52.
comp1(off), comp2(off), comp3(off)-fails on comp2
comp1(on), comp2(off), comp3(off)-fails on comp3
comp1(on), comp2(on), comp3(off)-no failure
comp1(off), comp2(on), comp3(off)-fails on comp3
and so on.....
Even with On Error GoTo CheckError before Dir() I get the error.
I guess my ? is, what do I use instead of Dir() to check if the box is alive?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top