我希望在没有cmd
弹出的情况下静默运行tkinter中的.bat文件。批处理文件运行正常但我希望{i}单击按钮时不会弹出{/ 1}}。
from tkinter import *
import os
def run_my_bat():
os.system("mybatfile.bat")
root = Tk()
b = Button(root, text="run batch file silently", command=run_my_bat)
b.pack()
root.mainloop()