private bool IsValidDirectory(string path) { if (Directory.Exists(path) || path.Trim().Length == 0)// valid folder or blank if defaults are needed { return true; } else { MessageBox.Show("Path does not exists! " + path); return false; } }