有時候要抓取同資料夾底下的東西
System.Windows.Forms.Application.StartupPath;
上一層資料夾
DirectoryInfo dir = new DirectoryInfo(System.Windows.Forms.Application.StartupPath).parent; (要在上一層可再加一個parent)
dir.FullName <= 完整路徑
紀錄。
文章標籤
全站熱搜
有時候要抓取同資料夾底下的東西
System.Windows.Forms.Application.StartupPath;
上一層資料夾
DirectoryInfo dir = new DirectoryInfo(System.Windows.Forms.Application.StartupPath).parent; (要在上一層可再加一個parent)
dir.FullName <= 完整路徑
紀錄。
