//// <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;
    }

 


arrow
arrow
    全站熱搜

    Roger 發表在 痞客邦 留言(1) 人氣()