怎么获取c#的process start传的值如题 谢谢了

2024-12-31 14:15:53
推荐回答(1个)
回答1:

1private void runSyncAndGetResults_Click(object sender, System.EventArgs e) 2{ 3 System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo(@"C:\listfiles.bat"); 4 psi.RedirectStandardOutput = true; 5 psi.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; 6 psi.UseShellExecute