Reply from Rob Crombie on May 27 at 3:00 PM Are you using FF ? I believe there is a setting to prevent auto refreshing
| | | ---------------Original Message--------------- From: Excellin Sent: Sunday, May 27, 2012 10:34 AM Subject: Fastest Response to Check if a Network Path is Available Does anyone else experience this forum refreshing when you're providing a response, causing you to lose all the text you've written? While you can ping a server, I didn't think that you could do that for a directory. I know what you mean by Windows taking its time to check on a directory. If you know of a file in the directory and can check, I believe that the results may be faster than if you're checking to see if the diretory itself exists. Try doing something like this: Public Function FileExists(fname$) As Boolean On Error GoTo ErrHandler ' in case of invalid path If Dir(fname) <> "" Then FileExists = True Else: FileExists = False End If Exit Function ErrHandler: Err.Clear FileExists = False End Function | | Reply to this email to post your response. __.____._ | In the Spotlight Become a blogger at Toolbox.com and share your expertise with the community. Start today. _.____.__ |
No comments:
Post a Comment