Code Repo    |     RSS
MD's Technical Sharing



Sunday, February 22, 2009

How to get path of the current system's temporary folder using .NET

Temporary folders are useful to store simple logs during execution of the program. It is also used for storing the decompressed files before any operation. The folder location varies from OS to OS. The following C# snippet would help in retrieving the Temporary folder path

string sPath;
sPath
= Path.GetTempPath();
Console
.WriteLine("Temporary Path := " + sPath );

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.