What exactly does System.Diagnostics.Process UseShellExecute do?

前端 未结 4 679
予麋鹿
予麋鹿 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:37

    The use of 'UseShellExecute' IIRC, is to allow explorer (the main shell) to execute the process and not the .NET runtime....unless somebody corrects me that I'm wrong...

提交回复
热议问题