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

查看:24
本文介绍了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 -您可以在此文件夹中放入低级访问信息,例如与在受保护模式下运行的网络浏览器相关的信息.

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 CSIDLAppData

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

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