加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

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

发布时间:2020-12-13 22:43:32 所属栏目:Windows 来源:网络整理
导读:我有一个VB6应用程序,它连接到 Windows 7 32位机器的几个POS终端. POS终端映射到Windows 7机器,我可以从资源管理器或cmdline / shell从Windows 7机器访问POS终端. 该应用程序已更新为ADO 2.8,并且已重新编写了我不再拥有源代码的所有其他控件和组件.经过几次
我有一个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_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem.

  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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读