What exactly does System.Diagnostics.Process UseShellExecute do?

前端 未结 4 677
予麋鹿
予麋鹿 2021-02-02 10:09

I have an MSBuild task that executes (among other things) a call to xcopy. What I have found is that this call to xcopy executes correctly when I run my MSBuild task from a batc

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-02 10:56

    did you specify WorkingDirectory correctly? You can see actual output of your command by adding >c:\log.txt 2>c:\err.txt run it wil this addition and check those files

提交回复
热议问题