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");
}
VulpesPosted Aug 1, 2014, 7:11 AM
mike DelvottiPosted Aug 1, 2014, 7:22 AM
Perfect - thanks Vulpes
I had to just add the comma's "*pdf" and it worked great :-)