HTML link call to a local HTML file using the exe link call local exe file

HTML link call to a local exe file

 

A, win + r open the registry, the registry input regedit into 2477203708

Two, HKEY_CLASSES_ROOT that tree right new entries in the top left of the registry. The name of his own name, in fact, the name is also the name of the protocol.

We call that under the agreement call.

Third, and then right in the middle -> New -> String Value, create a URL value Protocol, where the data is empty by default.

Fourth, the then new in ZZO -> item, the name for DefaultIcon

New in ZZO -> item entitled shell. And open a new item named in the shell. Then create a new key called command in the open

Each directory case:

Fifth, respectively, then modify the program DefaultIcon full path and command value to call.

Sixth, and then we add a label in a html page

<a href="Uaiqiy://">open</a>

Seven test code:

A, win + r open the registry, the registry input regedit into 2477203708

Two, HKEY_CLASSES_ROOT that tree right new entries in the top left of the registry. The name of his own name, in fact, the name is also the name of the protocol.

We call that under the agreement call.

Third, and then right in the middle -> New -> String Value, create a URL value Protocol, where the data is empty by default.

Fourth, the then new in ZZO -> item, the name for DefaultIcon

New in ZZO -> item entitled shell. And open a new item named in the shell. Then create a new key called command in the open

Each directory case:

Fifth, respectively, then modify the program DefaultIcon full path and command value to call.

Sixth, and then we add a label in a html page

<a href="Uaiqiy://">open</a>

Seven test code:

Guess you like

Origin www.cnblogs.com/gfhfh3259/p/11668654.html