2014-07-04 57 views
0

我有一個應用程序使用舊的IronPython版本,不包括subprocess模塊。有了這樣說,我想用產卵的過程:IronPython啓動子進程沒有控制檯窗口

from System.Diagnostics import Process 
Process.Start('something.exe', 'args') 

所看到here。 但是,我無法隱藏啓動這個新進程時彈出的控制檯窗口。任何想法我怎麼能繞過呢?

回答

0
from System.Diagnostics import Process 
p = Process() 
p.StartInfo.RedirectStandardOutput = True 
p.StartInfo.RedirectStandardError = True 
p.StartInfo.UseShellExecute = False 
p.StartInfo.CreateNoWindow = True 
相關問題