ProgramData和AppData有什么区别? [英] What is the difference between ProgramData and AppData?

查看:824
本文介绍了ProgramData和AppData有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要为我的程序存储一些用户特定的配置数据。 Application Data / AppData(位于用户目录中)和ProgramData(位于系统驱动器的根目录中)看起来都是放置它们的合理位置。

I need to store some user-specific configuration data for my program. Both Application Data/AppData (in the user's directory) and ProgramData (in the root of the system drive) seem like reasonable places to put it.

两者之间有什么区别程序数据和应用程序数据,我应该使用哪个?

What is the difference between Program Data and Application Data and which should I use?

推荐答案

简而言之, ProgramData包含以下应用程序数据:不是特定于用户的。计算机上的所有用户都可以使用此数据。任何全局数据都应放在此处。

To put it straight, ProgramData contains application data that is not user specific.This data will be available to all users on the computer. Any global data should be put in here.

AppData 文件夹包含配置设置,特定用户的下载信息/文件。因此,例如,任何用户特定的首选项和配置文件配置都可以存储在AppData文件夹中。 AppData文件夹又分为三个子文件夹

漫游-该文件夹包含可以随用户配置文件从计算机移动到另一计算机的数据。

本地-此文件夹包含不会随用户个人资料一起移动的数据。

LocalLow-您可以放入低级访问信息,例如与Web相关的信息浏览器在此文件夹中以受保护的模式运行。

AppData folder contains configuration settings, downloaded information/files for a particular user. So, for example any user specific preferences and profile configurations can be stored in the AppData folder. The AppData folder is further divided into three subfolders
Roaming - This folder contains data that can move with your user profile from a computer to another.
Local - This folder contains data that will not move with your user profile.
LocalLow - You can put in lowlevel access information such as information related to web browser running in a protected mode in this folder.

现在,您可以根据信息的类型来决定存储信息的最佳位置。

You can now decide depending on the type of information which would be the best place to store it.

参考链接: Windows CSIDL AppData

这篇关于ProgramData和AppData有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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