Where can I safely store records (i.e. files) that a standard (limited) user cannot modify or delete?
I have a service auditing standard users of the local PC. I would like to get the performance logs uploaded to a开发者_JAVA技巧n SQL server but as a first step, and for simplicity I need to store them, as well as the config.ini which initializes the service in a special folder accessible only to the localsystem account.
Is there such a folder and where would I find it?
Take a look at the Isolated Storage feature
With isolated storage, data is always isolated by user and by assembly. Credentials such as the origin or the strong name of the assembly determine assembly identity. Data can also be isolated by application domain, using similar credentials
How-tos:
- Create Files and Directories in Isolated Storage
- Read and Write to Files in Isolated Storage
精彩评论