how to execute multiple cammand in command prompt using c#

前端 未结 2 1533
误落风尘
误落风尘 2021-01-14 02:46

I want to execute multiple commands as below:

cd C:\\Informatica\\9.0\\clients\\PowerCenterClient\\client\\bin

pmrep

connect -r rs_01_lab -d Domain_D

2条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-14 03:13

    You need to set the parameter in the ProcessStartInfo.

    Example.

    Either set the Arguments Property

    Or use a different overload of the .Start() method.

提交回复
热议问题