Created
February 22, 2012 11:35
-
-
Save revolunet/1884386 to your computer and use it in GitHub Desktop.
open chrome window from internet explorer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proto = "openchrome://" | |
arg1 = WScript.Arguments(0) | |
url = right(arg1, len(arg1)-len(proto)) | |
set objShell = CreateObject("WScript.Shell") | |
objShell.run("chrome "+url) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\openchrome] | |
@="URL:openchrome Protocol" | |
"URL Protocol"="" | |
[HKEY_CLASSES_ROOT\openchrome\shell] | |
[HKEY_CLASSES_ROOT\openchrome\shell\open] | |
[HKEY_CLASSES_ROOT\openchrome\shell\open\command] | |
@="cscript \"c:\\chrome.vbs\" \"%1\"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a way to force chrome popup from IE.
1st: execute .reg to register the
openchrome
protocol2nd : change your link to use openchrome://http://revolunet.com to open the link in a chrome window
Alternative : use chrome frame