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

0.00 avg. rating (0% score) - 0 votes

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 );

0.00 avg. rating (0% score) - 0 votes
ToughDev

ToughDev

A tough developer who likes to work on just about anything, from software development to electronics, and share his knowledge with the rest of the world.

Leave a Reply