How can we get the path of the Temporary Folder?

 Posted by Ddd on 3/6/2011 | Category: ASP.NET Interview questions | Views: 3363 | Points: 40
Answer:

Use the Environment variable "TEMP" and pass it in the GetEnvironmentVariable method of the Environment class.

//Code:


Response.Write(Environment.GetEnvironmentVariable("TEMP"));


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response