指向 Samba 共享中目录的 HTML 链接,适用于 Internet Explorer 7/8

发布于 2024-08-15 07:11:25 字数 516 浏览 6 评论 0原文

我希望我的 HTML 页面链接到 Samba 共享(协议 SMB/CIFS Windows 共享)中的目录。 在我的 HREF 中,我写了 file://server/Share2/folder3

大多数浏览器都能很好地处理它(安装共享并在folder3上打开文件管理器),但 Internet Explorer 7 和 Internet Explorer 8 除外,它们显示 < code>权限被拒绝甚至没有询问密码。 我应该在 IE7/8 的 HREF 中编写什么才能打开folder3?

笔记:

  • 如果路径包含folder3部分,它就可以正常工作。
  • 如果共享已经安装,它就可以正常工作。因此,在测试之前,请输入“net use”以确保尚未安装任何共享。
  • Windows 用户名和共享用户名不同,因此弹出窗口应要求输入登录名/密码。同样,如果路径包含folder3部分,则此方法可以正常工作。
  • I want my HTML page to link to a directory in a Samba share (protocol SMB/CIFS Windows share).
    In my HREF I wrote file://server/Share2/folder3

    Most browsers handle it fine (mount the share and open a file manager on folder3) except Internet Explorer 7 and Internet Explorer 8, which say Permission denied without even asking for a password.
    What should I write in the HREF for IE7/8 to be able to open folder3?

    Notes:

  • It works fine if the path does not contain the folder3 part.
  • It works fine if the share is already mounted. So before testing it, type "net use" to make sure that no share is already mounted.
  • The Windows username and the share username are not the same, so a popup should ask for a login/password. Again, this works fine if the path does not contain the folder3 part.
  • 如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

    扫码二维码加入Web技术交流群

    发布评论

    需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

    评论(2

    两仪 2024-08-22 07:11:25

    file:// 链接的正确语法是:

    file:///path/on/local/computer
    
    file://server/share/folder
    

    所以在您的情况下尝试 file://server/Share2/folder3

    The correct syntax for file:// links is:

    file:///path/on/local/computer
    
    file://server/share/folder
    

    So in your case try file://server/Share2/folder3

    长不大的小祸害 2024-08-22 07:11:25

    通过将共享添加到 IE 中的受信任站点来检查是否已修复此问题。
    (例如,互联网选项安全、受信任的站点)

    Check if this is fixed by adding the share to trusted sites in IE.
    (Eg, internet options security, trusted sites)

    ~没有更多了~
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文