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");
}

VulpesRank #55 · 29.2K reputationPosted Aug 1, 2014, 3:11 AM EDT
mike DelvottiRank #7,298 · 244 reputationPosted Aug 1, 2014, 3:22 AM EDT
Perfect - thanks Vulpes
I had to just add the comma's "*pdf" and it worked great :-)