Vista and ProgramData

后端 未结 5 1715
名媛妹妹
名媛妹妹 2020-12-06 16:53

What is the right place to store program data files which are the same for every user but have to be writeable for the program? What would be the equivalent location on MS W

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-06 17:30

    SHGetFolderPath() with CSIDL of CSIDL_COMMON_APPDATA.

    Read more at http://msdn.microsoft.com/en-us/library/bb762181(VS.85).aspx

    If you need the path in a batch file, you can also use the %ALLUSERSPROFILE% environment variable.

提交回复
热议问题