2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

カスタムURLスキームでIE11(InternetExplore)を開くためのレジストリ[自分用メモ]

Last updated at Posted at 2019-10-06

レジストリ内容

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\ie11browser]
@="URL:OepnIE11 Protocol"
"EditFlags"=dword:00210000
"URL Protocol"=""

[HKEY_CLASSES_ROOT\ie11browser\DefaultIcon]
@="\"C:\\Program Files\\Internet Explorer\\iexplore.exe\"

[HKEY_CLASSES_ROOT\ie11browser\shell]

[HKEY_CLASSES_ROOT\ie11browser\shell\open]

[HKEY_CLASSES_ROOT\ie11browser\shell\open\command]
@="\"C:\\Program Files\\Internet Explorer\\iexplore.exe\" \"http://tasokori.net\""

開くURLは、%1による引数でいい感じに捌きたいがうまくいかない...

誰か教えて欲しい。

(2019/10/06 追記)
これが参考になるかもしれない
https://medium.com/@m.bhavsar6/custom-browser-protocol-for-windows-application-openrdp-708cd48aa387

(2019/10/08 追記)
これで一応望む挙動にはなるが、Edgeから開くと確認ダイアログが表示される(コマンドプロンプトを開いていいかと)
これはNGな気がする

@="C:\\Windows\\System32\\cmd.exe /c set myvar=%1&call set myvar=%%myvar:~12%%&call start %%myvar%%"
2
3
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?