例如,如果我的程序试图使用C:ProgramFiles (x86)[install directory]
中的createRectory()创建目录,则由于权限问题而失败。
我听说理想的位置是C:Users[username]AppDataLocal
,但是还有其他"安全"位置?
当然,它可能会根据Windows的版本而有所不同。
c: programData是通常使用的其他位置。以下是有帮助的,http://blogs.msdn.com/b/cjacks/archive/2008/02/05/where-should-should-i-i-write-program-data-instead-instead-ofprampram-program-files.aspx
您是指确定机器特定温度文件夹的一种方法吗?那么这应该很有用:http://msdn.microsoft.com/en-us/library/windows/desktop/aa364992(v=vs.85)9.aspx