batch file - How to run PowerShell Start-Process without closing the output window? -


i trying run following powershell command in cmd:

powershell -command "start-process msbuild.exe myproject.sln -verb runas" 

i'm running in powershell can uac (for elevated privileges). i'm not sure if there equivalent in cmd.

now, run powershell script within batch file, can double-click , execute. (or put in $path location , call anywhere)

but problem finishes running, closes, , cannot see build error message if any.

how can wait or pause when msbuild.exe has finished executing in new window?

the noexit command keeps powershell window open.

powershell -noexit -command "start-process msbuild.exe myproject.sln -verb runas"


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -