To get temporary folder path you can use System.IO.Path.GetTempPath().
It will check the environment variables in the following order.

  • TMP environment variable.
  • TEMP environment variable.
  • USERPROFILE environment variable.
  • Windows directory path
  • System.IO.Path.GetTempPath()

    for more informations take a look at the msdn GetTempPath function

    One thought on “How to get the temporary folder path”

    Leave a Reply