Answers for "how to run a batch file in python"

3

python execute bat file

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

python run batch file

import subprocess
subprocess.call([r'path where the batch file is storedname of the batch file.bat'])
Posted by: Guest on February-28-2021

Code answers related to "how to run a batch file in python"

Python Answers by Framework

Browse Popular Code Answers by Language