大家好, 我想知道在客户端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.
更多推荐
配置文件等的放置位置
发布评论