C# - Environment类,获取桌面的路径

        private void button1_Click(object sender, EventArgs e)

        {

            string Path = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);

            this.textBox1.Text = Path;

        }

  

你可能感兴趣的:(Environment)