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
Post a Comment