Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何创建自己的URL处理程序_Url - Fatal编程技术网

如何创建自己的URL处理程序

如何创建自己的URL处理程序,url,Url,我有两个链接: http:\ one UB:\两个 默认浏览器是IE。 需要在Chrome浏览器中打开第二个URL 我这样做: 创建并启动了reg文件,其中包含: Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\docnet] @="URL:UB Protocol" "URL Protocol"="" [HKEY_CLASSES_ROOT\docnet\shell] @="" [HKEY_CLASSES_ROOT\docnet

我有两个链接:

  • http:\ one
  • UB:\两个
  • 默认浏览器是IE。 需要在Chrome浏览器中打开第二个URL

    我这样做:

  • 创建并启动了reg文件,其中包含:

    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\docnet]
    @="URL:UB Protocol"
    "URL Protocol"=""
    
    [HKEY_CLASSES_ROOT\docnet\shell]
    @=""
    
    [HKEY_CLASSES_ROOT\docnet\shell\open]
    
    [HKEY_CLASSES_ROOT\docnet\shell\open\command]
    @="C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe %1"
    
    [HKEY_CLASSES_ROOT\ub]
    @="URL:UB Protocol"
    "URL Protocol"=""
    
    [HKEY_CLASSES_ROOT\ub\shell]
    @=""
    
    [HKEY_CLASSES_ROOT\ub\shell\open]
    
    [HKEY_CLASSES_ROOT\ub\shell\open\command]
    @="C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe %1"
    
  • 在Outlook中创建链接“ub:\two”并单击它

  • 利润,但它只打开Chrome浏览器,不通过链接。只是空的浏览器,因为我会用快捷方式打开它
  • 如何使浏览器通过链接运行?


    我看到过类似的问题,但没有找到答案。

    现在我发现a可以像这样传输URL中的一些参数:ub:\\-a 2,但问题是空格符号由outlook编码,我的密钥不起作用。我可以使用URL处理程序打开bat文件,这将打开Chrome浏览器并传输URL。我该怎么做?