Answers for "run cmd bat from python script"

3

python execute bat file

import subprocess
subprocess.call([r'C:ExampleForALocationScript.bat'])
Posted by: Guest on May-14-2020
0

python run bat in new cmd window

import subprocess

p = subprocess.Popen('a.bat', creationflags=subprocess.CREATE_NEW_CONSOLE)
Posted by: Guest on May-08-2021

Python Answers by Framework

Browse Popular Code Answers by Language