Python is similar.
import os
os.system("run-client.bat param1 param2")
If you require asynchronous behavior or redirected standard threads.
from subprocess import *
p = Popen(['run-client.bat', param1, param2], stdout=PIPE, stderr=PIPE)
output, errors = p.communicate()
p.wait()
source
share