Worf Posted July 23, 2009 Posted July 23, 2009 Hi I am trying to check if multible files exists and i can not seem to figure out how to get it to work. Below is what i use. If FolderBrowserDialog1.ShowDialog() = DialogResult.OK Then FileContents.Text = FolderBrowserDialog1.SelectedPath.ToString If (Not (IO.File.Exists(IO.Path.Combine(FolderBrowserDialog1.SelectedPath, "WIN51IP.SP3"))) _ Or (Not (IO.File.Exists(IO.Path.Combine(FolderBrowserDialog1.SelectedPath, "WIN51IC.SP3"))))) Then MESSAG = DataDLL.MSGS(1) Message.Show() FileContents.Text = "" Exit Sub Many Thanks for any help Worf Quote
Leaders snarfblam Posted July 23, 2009 Leaders Posted July 23, 2009 What is the problem that you are having? Quote [sIGPIC]e[/sIGPIC]
Worf Posted July 24, 2009 Author Posted July 24, 2009 What is the problem that you are having? Well the problem is that this routine is not seeing those files and showing the error message. Quote
Administrators PlausiblyDamp Posted July 24, 2009 Administrators Posted July 24, 2009 Have you tried assigning the paths to a variable so you can inspect them at runtime in the debugger? It could be a case of the paths not being correct. 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.