jjzjj

consolePath

全部标签

C#运行参数中有多个空格的进程

我正在尝试启动一个在参数中包含多个空格的进程。传递的参数是动态构建的。例如://ThesethreestringswillbebuiltdynamicallystringconsolePath="C:\\MyPath\\nunit3-console.exe"stringdll="C:\\MyPath\\My.Test.dll"stringwhere="--where\"test==My.Test.Example\""stringcmdText=$"\"{consolePath}\"\"{dll}\"{where}";//cmdText="\"C:\\MyPath\\nunit3-con