@echo off
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit
:begin
tasklist |find /i "QQ.exe"
if %errorlevel%==0 (goto killit) else (goto next)
:killit
taskkill /f /im QQ.exe
:next
ping -n 3 127.t >nul 2>nul
goto begin
从网上找的,
mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit 这句话据说是实现隐藏cmd窗口,为何在我的电脑上实现不了啊!!!
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit
:begin
tasklist |find /i "QQ.exe"
if %errorlevel%==0 (goto killit) else (goto next)
:killit
taskkill /f /im QQ.exe
:next
ping -n 3 127.t >nul 2>nul
goto begin
从网上找的,
mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit 这句话据说是实现隐藏cmd窗口,为何在我的电脑上实现不了啊!!!
