隐藏cmd窗口使其在后台运行

@echo off

if "%1"=="h" goto begin

start mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit

:begin

::在这里填上要执行的 命令行代码