run cmd bat from python script code example
Example 1: python execute bat file
import subprocess
subprocess.call([r'C:\Example\For\A\Location\Script.bat'])
Example 2: python run bat in new cmd window
import subprocess
p = subprocess.Popen('a.bat', creationflags=subprocess.CREATE_NEW_CONSOLE)