配置文件等的放置位置

编程入门 行业动态 更新时间:2024-10-28 04:23:09
本文介绍了配置文件等的放置位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好, 我想知道在客户端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.

更多推荐

配置文件等的放置位置

本文发布于:2023-10-07 10:53:37,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1469201.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:配置文件   位置

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!