//// <summary>
/// 刪除檔案
/// </summary>
/// <param name="path">當前檔的路徑</param>
/// <returns>是否刪除成功</returns>
public static bool FileDelete(string path)
{
bool ret = false;
System.IO.FileInfo file = new System.IO.FileInfo(path);
if (file.Exists)
{
file.Delete();
ret = true;
}
return ret;
}
全站熱搜