1.批处理隐藏自身窗口
@echo oFF
if "%1" neq "1" (
>"%temp%\tmp.vbs" echo set WshShell = WScript.CreateObject^(^"WScript.Shell^"^)
>>"%temp%\tmp.vbs" echo WshShell.Run chr^(34^) ^& %0 ^& chr^(34^) ^& ^" 1^",0
start /d "%temp%" tmp.vbs
exit
)
::以下为正常的批处理代码
cd "D:\Program Files\HXXD\HXXD.Client.StartBin\"
HXXD.Client.StartApplication.exe