Possible Duplicate:
Faster DirectoryExists function?
I want to check if some file exists on a network drive. But FileExists is too slow if drive is disconnected. How can I check it with some timeout?
Examples are welcome.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Check out
Faster DirectoryExists function?
I asked the same question there. The essence is that unfortunately you can’t avoid those long timeouts if the file does not exist.