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

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

问题描述

我已按照这些步骤操作,但它对我来说无法正常工作.

解决方案

经过几次测试后,我转向了另一种策略.我的目标是中间批处理脚本.然后批量拆分协议和url,打开IE.

这是批次:

回显 %1%设置变量=%1设置 var=%var:~4,-1%启动"%ProgramFiles%Internet Exploreriexplore.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_USERSoftwareClassesie]
"URL Protocol"=""""
@=""URL:IE Protocol""

[HKEY_CURRENT_USERSoftwareClassesieDefaultIcon]
@=""explorer.exe,1""

[HKEY_CURRENT_USERSoftwareClassesieshell]

[HKEY_CURRENT_USERSoftwareClassesieshellopen]

[HKEY_CURRENT_USERSoftwareClassesieshellopencommand]
@=""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 Exploreriexplore.exe" %var%

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

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