windows - Passing parameters to a custom URI -


I have such a custom uri:

  Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT \ demo] @ = "URL: demo protocol" "URL protocol" = "" [HKEY_CLASSES_ROOT \ demos \ DefaultIcon] @ = "\" D: \\ demo.bat \ "" [HKEY_CLASSES_ROOT \ demos \ shell] [HKEY_CLASSES_ROOT \ demo \ shell \ open] [HKEY_CLASSES_ROOT \ demos \ shell \ open \ command] @ = "\" D: \\ demo.bat \ "\"% 1 \ "\"% 2 \ "\" \ "\"% 3 For the command prompt being running, I use this command:  

D: -ip \ demo.bat% 4 \ ""

-ping 172.18 .102.65

But to run the same from the browser, if I use the custom URI as the demo: then I'm asking to pass the parameters I know that the custom URI How to pass the parameters of if I run it to run

How to pass parameters when running this custom Yuri from the browser? Please advise.

When using a custom URL, the entire URL has passed The app / script needs to extract the url as a parameter to your app / script which is required for it. For example:

  [HKEY_CLASSES_ROOT \ demos \ shell \ open \ command] @ = "\" D: \\ demo.bat \ "\"% 1 \ ""  

You can format URLs by any means, as long as this is a valid URL and starts with the demo: , such as:

  D: \ demo.bat "demo: ping IP = 172.18.102.65 'D: \ demo.bat" demo: ping = 172.18.102.65' D: \ demo.bat "demo: ping% 20172.18.102.65" < / Code> 

Update: Note, however, this is only for Internet Explorer (and Windows Explorer and TBE Windows Shell) Works with You have another solution is required, for example, your protocol Hanndlr mechanism of Firefox and other browsers:


Comments

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

android - how to get distance of 2 beacons and make a condtion base on that distance -

c# - WPF Expander overlay used in ItemsControl -