( implement Web page invoke local application via URL protocol
)
1. Use Notepad (or another text editor) to create a protocal.reg file and write the following
Windows Registry Editor Version5.00[hkey_classes_root\webshell]@="Url:webshell Protocol Handler""URL Protocol"=""[hkey_classes_root\webshell\defaulticon]@="C:\\Program Files (x86) \\Tencent\\WeChat\\WeChat.exe"[Hkey_classes_root\webshell\shell][hkey_classes_root\webshell\shell\open][hkey_classes_root\webshell\shell \open\command]@="\ "C:\\Program Files (x86) \\Tencent\\WeChat\\WeChat.exe\" \ "%1\""
2.
Modifying Parameters
After you open a file by using Notepad, follow the instructions to modify the relevant parameters
2.1 Modify the connection name
Modify the name in the red box to customize, all use English characters (the name is called the href), a total of six
2.2 Modifying the path of an executable file
Modify the path of the executable file in the red box, a total of two
Note: Use // split in File path
3.
Execute protocal.reg file
4.
Create a call connection
The connection address is The name of the link named in step 1, followed by ://hello, (Hello is the pass parameter, can be added arbitrarily)
JS Call exe program method