문제

Windows의 ProgramData 폴더의 중요성은 무엇입니까?

설치된 많은 프로그램이 Per ProgramData 폴더의 하위 디렉토리에 파일을 저장하는 것을 알아 보았습니다.그것에 대한 구체적인 이유가 있습니까?

내 응용 프로그램을위한 설치 프로그램을 만들어야합니다.ProgramData 또는 Users 아래에서 사용자 수준 파일을 저장해야합니까?

도움이 되었습니까?

해결책

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

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.

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.

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top