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

 

goodlucky 發表在 痞客邦 PIXNET 留言(0) 人氣()