How to get temporary folder for current user

Currently I am using following function to get the temporary folder path for current user: string tempPath = System.IO.Path.GetTempPath(); On some machines it gives me temp folder path of current user like: C:\Documents and Settings\administrator\Local Settings\Temp\ On some machines it gives me system temp folder path like: C:\Windows\TEMP MSDN Documentation also says that above API … Read more