xxx.bat脚本
if "%1"=="hide" goto begin
start mshta vbscript:createobject("wscript.shell").run("%~0 hide",0)(window.close)&&exit
:begin
要执行的命令
python3代码
import os
print(os.popen(r"xxx.bat").readlines())
xxx.bat脚本
if "%1"=="hide" goto begin
start mshta vbscript:createobject("wscript.shell").run("%~0 hide",0)(window.close)&&exit
:begin
要执行的命令
python3代码
import os
print(os.popen(r"xxx.bat").readlines())