Executing Batch File in C#

前端 未结 12 2034
有刺的猬
有刺的猬 2020-11-22 05:22

I\'m trying to execute a batch file in C#, but I\'m not getting any luck doing it.

I\'ve found multiple examples on the Internet doing it, but it is not working for

12条回答
  •  青春惊慌失措
    2020-11-22 05:53

    System.Diagnostics.Process.Start(BatchFileName, Parameters);

    I know this will work for batch file and parameters, but no ideas how to get the results in C#. Usually, the outputs are defined in the batch file.

提交回复
热议问题