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?
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?