string pLocalFilePath ="";//要復制的文件路徑 string pSaveFilePath ="";//指定存儲的路徑 if (File.Exists(pLocalFilePath))//必須判斷要復制的文件是否存在 { File.Copy(pLocalFilePath, pSaveFilePath, true);//三個參數分別是源文件路徑,存儲路徑,若存儲路徑有相同文件是否替換 }
string pLocalFilePath ="";//要復制的文件路徑 string pSaveFilePath ="";//指定存儲的路徑 if (File.Exists(pLocalFilePath))//必須判斷要復制的文件是否存在 { File.Copy(pLocalFilePath, pSaveFilePath, true);//三個參數分別是源文件路徑,存儲路徑,若存儲路徑有相同文件是否替換 }
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。