獲取系統特殊文件夾路徑信息
阿新 • • 發佈:2017-05-08
number .info tar ebo 文件 alt dex cep key
//獲取系統特殊文件夾路徑信息
try
{
this
.textBox1.Text=Environment.GetFolderPath(System.Environment.SpecialFolder.System);
this
.textBox2.Text=Environment.GetFolderPath(System.Environment.SpecialFolder.ProgramFiles);
this
.textBox3.Text=Environment.GetFolderPath(System.Environment.SpecialFolder.Desktop);
this
.textBox4.Text=Environment.GetFolderPath(System.Environment.SpecialFolder.Startup);
this
.textBox5.Text=Environment.GetFolderPath(System.Environment.SpecialFolder.StartMenu);
this
.textBox6.Text=Environment.GetFolderPath(System.Environment.SpecialFolder.MyMusic);
}
catch
(Exception Err)
{
MessageBox.Show(
"獲取系統特殊文件夾路徑信息發生錯誤!"
,
"信息提示"
,MessageBoxButtons.OK,MessageBoxIcon.Information);
}
獲取系統特殊文件夾路徑信息