获取临时文件目录

实现效果:

  

知识运用:

  Path类的GetTempPath方法

  public static string GetTempPath ()

实现代码:

        private void button1_Click(object sender, EventArgs e)
        {
            textBox1.Text = Path.GetTempPath();
        }

猜你喜欢

转载自www.cnblogs.com/feiyucha/p/10236120.html
今日推荐