public bool IsCorrectFilePath(string filepath)
{
if (Regex.IsMatch(filepath, @"^(?:[a-zA-Z]:\\)(?:[^\/|<>?*:""]*\\)*[^\/|<>?*:""]*$"))
return true;
else
return false;
}
public bool IsCorrectFilePath(string filepath)
{
if (Regex.IsMatch(filepath, @"^(?:[a-zA-Z]:\\)(?:[^\/|<>?*:""]*\\)*[^\/|<>?*:""]*$"))
return true;
else
return false;
}