I’m working in a network environment.
If I do:
strFile = Dir("\\(some user’s machine)\C$\Documents and Settings\All Users\Desktop\*.*")
to test the connection to a user’s machine and their machine is turned off or in sleep mode, I will get an error 52 (“bad file name or number”).
This is ok except for how long it takes – about 45 seconds. Sometimes there are a lot of these in a loop which takes a long time …
Is there a Windows API call or other function that might return results faster?
Thanks,
Brooks
If I do:
strFile = Dir("\\(some user’s machine)\C$\Documents and Settings\All Users\Desktop\*.*")
to test the connection to a user’s machine and their machine is turned off or in sleep mode, I will get an error 52 (“bad file name or number”).
This is ok except for how long it takes – about 45 seconds. Sometimes there are a lot of these in a loop which takes a long time …
Is there a Windows API call or other function that might return results faster?
Thanks,
Brooks