From 01cf71988659ba9fa250d1a5d5cf995aff9132e2 Mon Sep 17 00:00:00 2001 From: Bing Sun Date: Sun, 4 Sep 2016 13:28:09 +0800 Subject: [PATCH] cmd is targeting windows platform --- hik.bat | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/hik.bat b/hik.bat index 43c8df7..981a99f 100644 --- a/hik.bat +++ b/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