做軟體為了預設路徑位置,一般都需要預設目前桌面路徑,是以接下來的代碼可以幫助産品獲得所在系統的桌面路徑。
txtOutputPath.Text = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory);
做軟體為了預設路徑位置,一般都需要預設目前桌面路徑,是以接下來的代碼可以幫助産品獲得所在系統的桌面路徑。
txtOutputPath.Text = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory);