using System.IO;
using System.Collections;
DirectoryInfo myDirInformation = new DirectoryInfo(strPath);
if (myDirInformation.Exists == false)
{
MessageBox.Show("Cannot find directory.", "Directory Not Found");
}
else
{
MessageBox.Show("Welcome!!!.", "Directory Found");
}