Get return value from process

后端 未结 2 1110
感动是毒
感动是毒 2020-11-28 07:36

Hi I am trying to do the following: I have a process which can take parameters (digits) and return the sum of these numbers

Process P = Process.Start(sPhysic         


        
2条回答
  •  心在旅途
    2020-11-28 07:50

    use:

    Process P = Process.Start(sPhysicalFilePath, Param);
    P.WaitForExit();
    int result = P.ExitCode;
    

    from MSDN

提交回复
热议问题