bluejaguar456 Posted February 19, 2009 Posted February 19, 2009 hey guys, i am having a few problems with the file.exists() function. everything works fine when the file i am checking is on the same computer but if i put the file on a network computer .g my lptop and check if it exists then the program freezes and goes into not responding. can anyone help? thanks Quote
Administrators PlausiblyDamp Posted February 20, 2009 Administrators Posted February 20, 2009 What code are you using to check the server? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
bluejaguar456 Posted February 20, 2009 Author Posted February 20, 2009 The code that i am using is : locationd = "\\BEDROOMPC\All\RecruitmentLive!.mdb" database = File.Exists(locationd) If database = False Then msgbox("Not Database not available") End If 'continue with program. Thanks Quote
Administrators PlausiblyDamp Posted February 20, 2009 Administrators Posted February 20, 2009 If you try to access the share directly (start -> run and then type the full UNC path) what happens? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
bluejaguar456 Posted February 21, 2009 Author Posted February 21, 2009 my computer says a security warning, asking me if i want to open this file. Quote
bluejaguar456 Posted February 23, 2009 Author Posted February 23, 2009 anybody else now anything about this? Quote
Administrators PlausiblyDamp Posted March 1, 2009 Administrators Posted March 1, 2009 If you leave your app long enough does it raise any exceptions or other error messages? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.