Can I change the temp folder path?

Posted by roufamatic on Stack Overflow See other posts from Stack Overflow or by roufamatic
Published on 2010-03-26T07:56:02Z Indexed on 2010/04/03 5:23 UTC
Read the original article Hit count: 277

Filed under:

I have an asp.net app that uses System.IO.Path.GetTempFileName() for temporary files. In the production IIS environment (W2K3), the temp folder (System.IO.Path.GetTempPath()) points to C:\Windows\Temp. But on my XP dev machine it's C:\documents and settings\machinename\ASPNET\temp.

Is it possible to change this folder without affecting other accounts on my machine?

© Stack Overflow or respective owner

Related posts about ASP.NET