To get the path of the current user's temporary folder, call the GetTempPath method in the System.IO namespace:

string tempPath = System.IO.Path.GetTempPath();

On Windows Vista and 7, this method will return the following path:

C:\Users\UserName\AppData\Local\Temp\

Popularity: 2% [?]

Related posts:

  1. C# Copy Folder Recursively
  2. Check Valid File Path in C#
  3. Truncate File Path with Ellipsis
  4. C# Read Text File Line-by-Line
  5. C# Read Text File into String