1.修改注册表
添加自定义URL协议 MSTSC
[HKEY_CLASSES_ROOT\MSTSC]
@="URL:MSTSCProtocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\MSTSC\DefaultIcon]
[HKEY_CLASSES_ROOT\MSTSC\shell]
[HKEY_CLASSES_ROOT\MSTSC\shell\open]
[HKEY_CLASSES_ROOT\MSTSC\shell\open\command]
@="cmd /C set m=%1 & call set m=%%m:MSTSC://=%% & call set g=%%m:/=%% &call "cmd /c start mstsc /v:"%%g%%"" & exit"
2.网页中添加链接
在网页中添加打开远程桌面的链接
<a href="MSTSC://1.2.3.4">打开远程<a>
标签:网页,MSTSC,%%,HKEY,CLASSES,远程桌面,ROOT
From: https://www.cnblogs.com/dreamos/p/17921397.html