怎么用批处理在运行一个文件后自动最小化?

2025-03-07 06:40:34
推荐回答(1个)
回答1:

if not "%1"=="m" ping 127.1 -n 30 >nul&&mshta vbscript:createobject("wscript.shell").run("""%~f0"" m",2)(window.close)&&exit
D:\ZSYZH\ygtxvod.exe

将最后两行替换为上面的代码即可实现30秒后最小化cmd窗口.