Windows 7上的SpecialFolder(从XP迁移)

时间:2017-07-17 14:28:18

标签: vb.net

所有

有一个旧的XP应用程序(下面,最初是在vb中),它存储/检索配置文件,需要为Windows 7和其他人“转换”这个。我相信'旧的'SpecialFolder命令现在必须指向其他文件夹,但我不确定所以任何帮助赞赏。如果我在Windows 7上运行它作为示例,则找不到或创建配置文件。

Case Config.PrivateFile 'each user has their own personal settings
'use "\documents and settings\username\application data" for the config file directory
sb.Append(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData))

Case Config.SharedFile 'all users share the same settings
'use "\documents and settings\All Users\application data" for the config file directory
sb.Append(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData))

此致 活性

0 个答案:

没有答案
相关问题