if exist %WinDir%\SysWOW64\mshta.exe ( set MSHTA=%WinDir%\SysWOW64\mshta.exe ) else ( set MSHTA=mshta ) reg add HKCR\hik /v "URL Protocol" /f reg add HKCR\hik\shell\open\command /d "%MSHTA% \"javascript:window.open('%1'.replace('hik:',''),'显示窗口','height=600,width=650,location=no,menubar=no,resizable=yes');window.close()\"" /f