FileInfo myInfo = new FileInfo(@"C:\newfile.txt"); //判斷檔案是否存在 if (myInfo.Exists) { //複製檔案 myInfo.CopyTo(@"C:\newfile.bak"); }
確定! 回上一頁