Invoke an exe from PowerShell and get feedback on success or failure -


how can run executable in powershell , through if statement determine whether succeeded or failed?

more i'm trying devenv.exe build solution powershell script , need know whether succeeded or failed. failed, mean build has failed , i'm assuming devenv sending out shell (possibly in stderr stream?)

i tried using &, invoke-expression , invoke-item , managed of them run exe. never able feedback on success / failures.

have tried using $lastexitcode variable? contain exit code of last .exe invoked.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -