Temp directories
Sometimes you just need a temp directory to store stuff in. Pre-Vista this was easy; System.IO.Path.GetTempPath() however, like the documentation says, this is the System's temporary directory, not yours so it does not work so well in Vista.
I do not know what the BEST solution is but this seems to work well:
System.Environment.GetFolderPath(Environment.SpecialFolder.InternetCache)
..and there a slim chance that any non-deleted temp file will occasionally get cleaned up too.

0 Comments:
Post a Comment
<< Home