Windows 8中的多个INI文件 [英] multiple INI files in Windows 8

查看:70
本文介绍了Windows 8中的多个INI文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

提前致谢,



我的应用程序有一个ini文件,Windows 8正在为每个用户创建ini文件

目录(c:\users\guest\appdata\local\virtualstore \program Files \ MyyApp \)自动如果我从应用程序保存设置然后它保存在这里而不是

应用程序安装的目录是(c:\Program files \ My Application)。



任何帮助/解决方案都将受到高度赞赏。

解决方案

你不应该试图存储任何无论如何,ProgramFiles下的信息:安全策略越来越难以写入这些文件夹被视为可能的病毒活动。

有许多安全的地方可以存储数据(和ini文件是数据) - 看看这里:我应该在哪里存储我的数据? [ ^ ]

Thanks in advance,

I have an application which has an ini file , Windows 8 is creating ini file for each user in its
directory ("c:\users\guest\appdata\local\virtualstore\program files\My Application\") automatically and if i save settings from application then it saves here instead of
application installed directory which is ("c:\Program files\My Application").

Any help/solution will be highly appreciated.

解决方案

You should not be trying to store any information under ProgramFiles anyway: security policies make it harder and harder to do as writing to these folders is seen as possible virus activity.
There are many "safe" places you can store data (and ini files are data) - have a look here: Where should I store my data?[^]


这篇关于Windows 8中的多个INI文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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