locked
User Temp Variable like %temp%?

    Question

  • Hey there,

    i am new to this and i have a problem with envoirement variables, i dont find any for the user temp folder ( %temp% ). I know the environment.specialfolder but there is no "regular" temp folder (i dont need the temporary internet files folder)...

    I need a variable for temp, i dont want to use absolute paths... :/

    Thanks for the help

     

    greetings

    Wednesday, July 01, 2009 7:22 AM

Answers

  • Use System.IO.Path.GetTempPath().

    Hans Passant.
    • Marked as answer by Harry Zhu Friday, July 03, 2009 8:33 AM
    Wednesday, July 01, 2009 10:38 AM