close

COPY FILES:

//先判斷是否有該目錄

if(!System.IO.Directory.Exists(path));

//若沒有該目錄就create

System.IO.Directory.CreateDirectory(Path);

//第一個參數為Source, 第二個參數為複製目的(檔名可隨便取), true表示可以覆蓋目的檔案

System.IO.File.Copy(@"C:\abc.txt", @"D:\def.txt", true);


START FILES:

System.Diagnostics.Process.Start(Path+FileName);

arrow
arrow
    全站熱搜

    Big Bear 發表在 痞客邦 留言(0) 人氣()