如何让cmd程序在windows后台运行啊?

2025-03-24 17:10:36
推荐回答(1个)
回答(1):

在批处理前面加一段代码就行了
@echo off
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit
:begin
::下面是你自己的代码。