配置文件等的放置位置 [英] Where to place config files etc.

查看:67
本文介绍了配置文件等的放置位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想知道在客户端PC上创建文件的最佳位置是哪里,安全权限(组策略)受限制的位置在哪里?

我读了一篇文章,指出以下位置:

Hi all,

I would like to know where would be the best location to create a file on a client PC, where there is restricted security right (group policies)?

I read an article that states the following location:

Environment.SpecialFolder.LocalApplicationData



正确吗?
提前非常感谢.
亲切的问候,



Is that correct?
Many thanks in advance.
Kind regards,

推荐答案

Environment.SpecialFolder.LocalApplicationData

是的,这是正确的.

或者您可以使用

Environment.SpecialFolder.LocalApplicationData

Yes It is correct.

or you could use

Environment.SpecialFolder.ApplicationData



如果您已经注意到,所有已安装的应用程序都在这些位置存储数据.

如果有帮助,请 投票 接受答案 .



At those location all the installed application stores data, if you have noticed.

Please vote and Accept Answer if it Helped.


这取决于关于数据是什么.如果数据必须对所有用户都可用,即无论用户是什么都对应用程序有用,则使用;
It depends on what the data is. If the data must be available to ALL users i.e. it is for the application regardless of the user then use;
Environment.SpecialFolder.CommonApplicationData


如果数据是特定于单个用户的,则使用;


If the data is specific to a single user then use;

Environment.SpecialFolder.ApplicationData
OR
Environment.SpecialFolder.LocalApplicationData



通常,将Environment.SpecialFolder.ApplicationData用于特定的用户数据,因为如果使用漫游配置文件,也会复制存储在此处的数据.



You use Environment.SpecialFolder.ApplicationData for specific user data as a general rule because data stored here is also replicated if roaming profiles are used.


这篇关于配置文件等的放置位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆