Check if multible files exists.

Worf

Newcomer
Joined
Dec 19, 2008
Messages
17
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.

Code:
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
 
Back
Top