把下面的代码加到批处理前面,就可以实现隐藏运行。@echo offif "%1" == "h" goto beginmshta vbscript:createobject("wscript.shell").run("%~fs0 h",0)(window.close)&&exit:beginrem 下边开始是批处代码了。