Vista Rights: Where to save temp files?

Posted on 2007-08-08
Last Modified: 2013-11-05

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
Question by:Ruttensoft
    LVL 53

    Accepted Solution

    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"
    LVL 96

    Assisted Solution

    by:Bob Learned
    You should also be able to write temporary files to the System.IO.Path.GetTempPath() folder.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    6 Experts available now in Live!

    Get 1:1 Help Now