PowerShell - Start-Process and Cmdline Switches

前端 未结 5 639
我寻月下人不归
我寻月下人不归 2020-11-28 08:27

I can run this fine:

$msbuild = \"C:\\WINDOWS\\Microsoft.NET\\Framework\\v3.5\\MSBuild.exe\" 
start-process $msbuild -wait

But when I run t

5条回答
  •  生来不讨喜
    2020-11-28 09:03

    I've found using cmd works well as an alternative, especially when you need to pipe the output from the called application (espeically when it doesn't have built in logging, unlike msbuild)

    cmd /C "$msbuild $args" >> $outputfile

提交回复
热议问题