[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 697
  • Last Modified:

Vista Rights: Where to save temp files?

Hello

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
0
Ruttensoft
Asked:
Ruttensoft
2 Solutions
 
DhaestCommented:
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:
http://www.thescripts.com/forum/thread638856.html

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"
http://www.microsoft.com/emea/itsshowtime/sessionh.aspx?videoid=360
0
 
Bob LearnedCommented:
You should also be able to write temporary files to the System.IO.Path.GetTempPath() folder.

Bob
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now