mike Delvotti

mike Delvotti

  • NA
  • 262
  • 0

Check if File exists

Aug 1 2014 7:02 AM

I'm trying to check a directory to see if any pdf files exist or not, is it possible to add a wildcard to check if any pdf files exist on my below code?

                if (File.Exists(scanDirTextBox.Text))
                {
                    MessageBox.Show("File exists");
                }
                else
                {
                   
                    MessageBox.Show("No files");
                }


Answers (2)