瀏覽代碼

cmd is targeting windows platform

master
Bing Sun 8 年之前
父節點
當前提交
01cf719886
共有 1 個檔案被更改,包括 8 行新增8 行删除
  1. +8
    -8
      hik.bat

+ 8
- 8
hik.bat 查看文件

@@ -1,8 +1,8 @@
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
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:open('%1'.replace('hik:',''),'ÏÔʾ´°¿Ú','height=600,width=650,location=no,menubar=no,resizable=yes');close()\"" /f

Loading…
取消
儲存