如何从Google Chrome浏览器中打开浏览窗口

how to open windows explore from Google Chrome?

本文关键字:浏览 窗口 浏览器 Google Chrome      更新时间:2023-09-26

放置时file://myServer/network文件协议在Windows7的IE地址行中,它将打开WindowsExplore指向网络共享文件夹。

但当我在谷歌浏览器上尝试时,它不会打开Windows Explore,所有文件夹和文件都会在浏览器模式下显示。

放置时如何在Chrome中打开Windows Explorefile://chorus.actra.ca/network地址行?

事实上,出于安全原因,Chrome不会在网络上打开file://

我所知道的唯一解决方案是在客户端PC上的Windows注册表配置单元HKEY_CLASSES_ROOT中添加一个URL协议密钥:

[HKEY_CLASSES_ROOT'mycustomfileopener]
@="URL:mycustomfileopener"
"URL Protocol"=""
[HKEY_CLASSES_ROOT'mycustomfileopener'shell]
[HKEY_CLASSES_ROOT'mycustomfileopener'shell'open]
[HKEY_CLASSES_ROOT'mycustomfileopener'shell'open'command]
@="C:''mycustomfileopener.exe %1"

您还需要一个可执行文件(mycustomfileopener.exe),该文件将把URL字符串(减去mycustomfileopener://协议部分)传递给客户端PC上可用的适当应用程序。这可以使用一些简单的VBScript并将其编译为.exe来完成。

现在,当Chrome(或任何浏览器)尝试打开mycustomfileopener://myServer/network时,它将自动启动上述过程,直接在网络上打开URL。