c# function 用法記錄

  • 261
  • 0
  • C#
  • 2018-01-15

常常忘記寫過的用法 故記錄在這邊 比較好查詢

//複製資料夾內的所有檔案 private static void CopyFiles(string remotePath, string localPath) { FileInfo[] fileList = Form計畫表_多.GetFileList(remotePath); for (int i = 0; i < fileList.Length; i++) { string sourceFileName = remotePath + "\\" + fileList.GetValue(i).ToString(); string text = localPath + "\\" + fileList.GetValue(i).ToString(); if (!File.Exists(text) && fileList.Length != text.Length) { File.Copy(sourceFileName, text, true); Thread.Sleep(500); } } }

 

 

興滿逸筑2013年全新完工,位於恆春鎮外圍離市區只要2分鐘車程,有豪華的外觀、有美麗的庭院、也有溫馨舒適的房間,這裡車流量不多,空氣不錯,適合家族或成群結黨的朋友們一同旅遊的好地方。

http://sinmaniz.tw/index.html