获取临时文件目录

实现效果:

  

知识运用:

  Path类的GetTempPath方法

  public static string GetTempPath ()

实现代码:

        private void button1_Click(object sender, EventArgs e)
        {
            textBox1.Text = Path.GetTempPath();
        }
原文地址:https://www.cnblogs.com/feiyucha/p/10236120.html