用 Environment 类: string path = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); MessageBox.Show(path);