Use shell=Trueand creationflags=subprocess.SW_HIDEwith subprocess.Popen. It worked for me
subprocess.Popen(['test.bat'], shell=True, creationflags=subprocess.SW_HIDE)
In some versions of Python, it is SW_HIDEnot available in the module subprocess. In this case, you may have to use_subprocess.SW_HIDE
source
share