Get return value from process

后端 未结 2 1097
感动是毒
感动是毒 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

    0 讨论(0)
  • 2020-11-28 08:01

    You can try the below code:

        Dim P As New Process
        P = Process.Start(info)
        P.WaitForExit()
        fichiersATraiter = P.ExitCode
    

    Hope this helps :)

    0 讨论(0)
提交回复
热议问题