rajeshkumar created the topic: Run a .bat file using python code
from subprocess import Popen
p = Popen(“batch.bat”, cwd=r”C:\Path\to\batchfolder”)
stdout, stderr = p.communicate()
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn
Latest posts by Rajesh Kumar (see all)
- Best AI tools for Software Engineers - November 4, 2024
- Installing Jupyter: Get up and running on your computer - November 2, 2024
- An Introduction of SymOps by SymOps.com - October 30, 2024