[csharp]
/// <summary>
/// 文件路徑驗證
/// </summary>
/// <remarks>
/// 創建人:zhujt<br/>
/// 創建日期:2012-08-24 21:57:07
/// </remarks>
/// <param name="path"></param>
/// <returns></returns>
public static bool CheckPath(string path)
{
string pattern = @"^[a-zA-Z]:(((\\(?! )[^/:*?<>\""|\\]+)+\\?)|(\\)?)\s*$";
Regex regex=new Regex(pattern);
return regex.IsMatch(path);
}