利用.NET中的File.Copy方法
命名空間:System.IO
重載列表:Copy(string sourceFilePath,string targetFilePath)
sourceFilePath:要復制的文件路徑。
targetFilePath:目標文件的路徑,不能是目錄和現有的文件
如果目標文件已經存在,會產生IOException
Copy(string sourceFilePath,string targetFilePath,bool overwrite)
sourceFilePath:要復制的文件路徑。
targetFilePath:目標文件的路徑,不能是目錄
overwrite :true表示可以覆蓋目標文件,false表示不能覆蓋目標文件