Windows 7 – Windows 7上的VB6应用程序无法访问映射的驱动器

我有一个VB6应用程序,它连接到 Windows 7 32位机器的几个POS终端. POS终端映射到Windows 7机器,我可以从资源管理器或cmdline / shell从Windows 7机器访问POS终端.

该应用程序已更新为ADO 2.8,并且已重新编写了我不再拥有源代码的所有其他控件和组件.经过几次恼人的打嗝后,我得到了应用程序,在Windows 7计算机上重新编译,没有错误.

现在来问题了. VB6应用程序无法查看或导航到任何映射的驱动器!我尝试过简单的UAC设置;我已将应用程序设置为在Windows XP SP3模式下运行;我试过以管理员身份运行.这些东西(以及这些东西的许多排列)都不起作用.

有关如何使这项工作的任何建议?

添加此注册表设置为我解决了问题: http://technet.microsoft.com/en-us/library/ee844140%28v=ws.10%29.aspx.

To work around this problem,configure the EnableLinkedConnections
registry value. This value enables Windows Vista and Windows 7 to
share network connections between the filtered access token and the
full administrator access token for a member of the Administrators
group. After you configure this registry value,LSA checks whether
there is another access token that is associated with the current user
session if a network resource is mapped to an access token. If LSA
determines that there is a linked access token,it adds the network
share to the linked location. To configure the EnableLinkedConnections
registry value

  1. Click Start,type regedit in the Start programs and files box,and
    then press ENTER.

  2. Locate and then right-click the registry subkey HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System.

  3. Point to New,and then click DWORD Value.

  4. Type EnableLinkedConnections,and then press ENTER.

  5. Right-click EnableLinkedConnections,and then click Modify.

  6. In the Value data box,type 1,and then click OK.

  7. Exit Registry Editor,and then restart the computer.

相关文章

文章浏览阅读2.2k次,点赞6次,收藏20次。在我们平时办公工作...
文章浏览阅读1k次。解决 Windows make command not found 和...
文章浏览阅读3.2k次,点赞2次,收藏6次。2、鼠标依次点击“计...
文章浏览阅读1.3w次。蓝光版属于高清版的一种。BD英文全名是...
文章浏览阅读974次,点赞7次,收藏8次。提供了更强大的功能,...
文章浏览阅读1.4w次,点赞5次,收藏22次。如果使用iterator的...