使用协议处理程序(即:url)从Chrome打开Internet Explorer [英] Open Internet Explorer from Chrome using a protocol handler (ie:url)

查看:513
本文介绍了使用协议处理程序(即:url)从Chrome打开Internet Explorer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已按照这些步骤操作,但对我来说无效。

解决方案

经过几次测试,我转向另一种策略。
我的目标是中间批处理脚本。
批次拆分协议和网址,然后打开IE浏览器。



这是批次:

  echo%1%
set var =%1
set var =%var:~4,-1%
开始% ProgramFiles%\ Internet Explorer \ xxxlore.exe%var%


I've followed these steps and it doesn't work correctly for me. Custom protocol handler in chrome

Basically, I don't have a custom app. I just want to create an handler to open IE with a specific URL.

Here are my reg:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\ie]
"URL Protocol"="\"\""
@="\"URL:IE Protocol\""

[HKEY_CURRENT_USER\Software\Classes\ie\DefaultIcon]
@="\"explorer.exe,1\""

[HKEY_CURRENT_USER\Software\Classes\ie\shell]

[HKEY_CURRENT_USER\Software\Classes\ie\shell\open]

[HKEY_CURRENT_USER\Software\Classes\ie\shell\open\command]
@="\"C:\\Program Files\\Internet Explorer\\iexplore.exe\" \"%1\""

It's working but... when I'm opening ie:www.google.com from Chrome, it ask to open IE but it keeps the "ie:" in the opened URL... which generate a endless loop.

How can I fix that?

Thanks

解决方案

After few tests, I move to another strategy. I'm targetin an intermediate batch script instead. And the batch split the protocol and the url, and open IE.

Here is the batch:

echo %1%
set var=%1
set var=%var:~4,-1%
Start "" "%ProgramFiles%\Internet Explorer\iexplore.exe" %var%

这篇关于使用协议处理程序(即:url)从Chrome打开Internet Explorer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆