這邊有用chrome打開ie的需求,但是ie跳轉的地址里面有多個引數用了&作為分隔。
使用^轉義&時無法打開IE,不使用的話提示后一個引數不是CMD命令。
簡單來說就是使用自定義協議打開ie時,url帶多個引數該如何處理
感謝!
下面是自定義協議的實作參考鏈接
http://blog.sina.com.cn/s/blog_e2b8213a0102wqby.html
uj5u.com熱心網友回復:
首先將URL中的 & 替換為 ^&,然后注冊表檔案最后一行的cmd命令加引號即可,親測可用

uj5u.com熱心網友回復:
我試了不行求指教我是這么寫的Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\openIE]
@="URL:OpenIE Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\openIE\DefaultIcon]
@="iexplore.exe,1"
[HKEY_CLASSES_ROOT\openIE\shell]
[HKEY_CLASSES_ROOT\openIE\shell\open]
[HKEY_CLASSES_ROOT\openIE\shell\open\command]
@="cmd /c set m=%1 & call echo %%m%% & call set "m=%%m:openIE:=%%" & call start \"\" \"C:\\Program Files\\Internet Explorer\\iexplore.exe\" "%%m%%" & exit"
打開的鏈接
https://www.baidu.com/?view=1%5E變成了這樣 后面的引數都會變成 %5E
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/10120.html
標籤:其他技術討論專區
