close

有時候要抓取同資料夾底下的東西

 

System.Windows.Forms.Application.StartupPath;

 


 

 

上一層資料夾


DirectoryInfo dir = new DirectoryInfo(System.Windows.Forms.Application.StartupPath).parent; (要在上一層可再加一個parent)
dir.FullName <= 完整路徑

 

 

紀錄。

arrow
arrow
    全站熱搜

    貓小佑 發表在 痞客邦 留言(0) 人氣()