Pages

Tuesday, July 5, 2011

Getting Temporary Folder Path in C#

Path.GetTempPath() method can be used to retreive temporary folder path on user's system. Don't forget to import System.IO namespace.


string tempFolderPath;


tempFolderPath= Path.GetTempPath();


Console.WriteLine("Temp Path= " + tempFolderPath);

No comments:

Post a Comment