string dir = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory); MessageBox.Show("桌面的路徑是"+dir);