Getting the temp folder

Posted Friday, February 24, 2006 5:00 PM by Maurice
Maybe it isn’t a big issue but it is one of those things that waste my time and for that reason piss me of :-(
 
The Environment class has a GetFolderPath() function that lets you retrieve a whole list of folders as defined by the SpecialFolder enumeration. Nice but the Temp folder isn't part of the enumeration. If you want to find the temp folder you need to use the Path.GetTempPath() function. So how hard would it be to add the TempPath to the SpecialFolder enumeration and have the developer remember only a single function to check directories>
 
 
Maurice de Beijer
Filed under: