开发者

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜