Windows 中 ProgramData 文件夹的意义是什么? [英] What is the significance of the ProgramData folder in Windows?

查看:36
本文介绍了Windows 中 ProgramData 文件夹的意义是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ProgramData 文件夹在 Windows 中的重要性是什么?

What is the importance of the ProgramData folder in Windows?

我注意到许多已安装的程序将文件存储在 ProgramData 文件夹的子目录中.有什么具体原因吗?

I have noticed that many installed programs store files in a subdirectory of the ProgramData folder. Is there a specific reason for that?

我必须为我的应用程序创建一个安装程序.我应该将用户级文件存储在 ProgramData 下还是 Users 下?

I have to create an installer for my application. Should I store user-level files under ProgramData or under Users?

推荐答案

文档 描述了此文件夹的预期用途(重点是我的):

The documentation describes the expected use of this folder like this (emphasis mine):

包含所有用户的应用程序数据的文件系统目录.典型的路径是 C:\Documents and Settings\All Users\Application Data.此文件夹用于存储非用户特定的应用程序数据.例如,应用程序可以在 CSIDL_COMMON_APPDATA 文件夹中存储拼写检查字典、剪贴画数据库或日志文件.此信息不会漫游,任何使用计算机的人都可以使用.

The file system directory that contains application data for all users. A typical path is C:\Documents and Settings\All Users\Application Data. This folder is used for application data that is not user specific. For example, an application can store a spell-check dictionary, a database of clip art, or a log file in the CSIDL_COMMON_APPDATA folder. This information will not roam and is available to anyone using the computer.

请注意,本文档指的是旧版 Windows 的典型路径.在现代版本的 Windows 中,它位于 %SystemDrive%\ProgramData.

Note that this documentation refers to the typical path as per older versions of Windows. In modern versions of Windows it is located in %SystemDrive%\ProgramData.

令人失望的是,以上引用来自现在遗留的 CSIDL 文档.但是替换文档KNOWNFOLDERID 省略了您打算对这些特殊文件夹执行的操作的有用描述.因此,为了深入了解此类问题,您需要参考这两个主题,据我所知.

Rather disappointgly, the above quote is from the now legacy CSIDL documentation. But the documentation for the replacement KNOWNFOLDERID omits the useful descriptions of what you are intended to do with these special folders. So, in order to get to the bottom of questions like this you need to refer to both topics, so far as I can tell.

这篇关于Windows 中 ProgramData 文件夹的意义是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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