开发者

Windows 7/Vista storing files in application directory

开发者 https://www.devze.com 2023-02-25 03:34 出处:网络
are there any restrictions regarding storing files in application folder under windows 7/vis开发者_Python百科ta ?

are there any restrictions regarding storing files in application folder under windows 7/vis开发者_Python百科ta ?

Where in users directory should application data files be stored ?


All my apps that store files in app folder work fine under vista/7 (default configs). So I think yes.

You can store files in 2 places

  1. users home directory - location can be read from environment variable USERPROFILE
  2. application data folder - can be found in env. var. APPDATA


You can store arbitrary data in your application's installation directory (most likely "Program Files" or "Program Files (x86)"), but you will have to have Administrator privileges to do so (which can be very annoying for users, especially if they have UAC enabled). Once you have the privileges, there are no further limitations.

For more detail see the thread Ken White linked.

0

精彩评论

暂无评论...
验证码 换一张
取 消