Vista Rights: Where to save temp files?


I am using Vista out of the box (admin rights not enabled).
I am trying to write into application.startuppath & "\Temp" (Which is c:\Program Files\X\Temp)

But it says that I have no right to write there... Is that true?

Where should I then save my temp files? Thanks
Who is Participating?
DhaestConnect With a Mentor Commented:
The best practise is using Environment.SpecialFolder.ApplicationData to find the per-user application data folder path and save the data there.
Please see this thread below for more information:

Finally, if you are interested to understand the Vista new UAC security enhancement, I highly recommend "Mark Russinovich"'s online video below, it is almost the best tech talk on UAC topic(level 400):"Windows Vista User Account Control Internals"
Bob LearnedConnect With a Mentor Commented:
You should also be able to write temporary files to the System.IO.Path.GetTempPath() folder.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.