Created
June 13, 2014 11:50
-
-
Save pewerner/02496a5f8356c606d83e to your computer and use it in GitHub Desktop.
Launch a Batch File with IronPYthon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from System.Diagnostics import Process | |
p = Process() | |
p.StartInfo.UseShellExecute = False | |
p.StartInfo.RedirectStandardOutput = False | |
p.StartInfo.FileName = r"C:\test.bat" | |
p.Start() | |
p.WaitForExit() | |
print(p.ExitCode) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment