Answers for "how to create a bat file in windows to run python program"

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

Code answers related to "how to create a bat file in windows to run python program"

Python Answers by Framework

Browse Popular Code Answers by Language