tags:

views:

762

answers:

3

Seems so basic, I can't believe I don't know this! I just need a scratch folder to dump some temporary files to. I don't care if it gets wiped out between usages or not, and I don't think I should have to go through the hassle of creating one and maintaining it myself from within my application. Is that too much to ask?

+15  A: 

System.IO.Path.GetTempPath()

Adam Wright
+5  A: 

Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) or Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)

Eduardo Campañó
+3  A: 

This is for VB.NET

My.Computer.FileSystem.SpecialDirectories.Temp

not sure if there's similar in C#

Teme @ windevblog.blogspot.com

Teme64