Question: I have an ASP.NET application which creates temporary PDF files (for the user to download). Now, many users over many days can create many PDFs, which take much di
Try using Path.GetTempPath(). It will give you a path to a windows temp folder. Then it will be up to windows to clean up :)
Path.GetTempPath()
You can read more about the method here http://msdn.microsoft.com/en-us/library/system.io.path.gettemppath.aspx