如何在Windows的cmd下让程序在后台执行

2025-04-06 21:05:17
推荐回答(1个)
回答1:

后台?不显示cmd窗口是吗。可能要调用vbs了。。。把以下代码放到cmd代码的最前面

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