Skip to content

Instantly share code, notes, and snippets.

@billkindle
Created July 7, 2019 16:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billkindle/4ae11eb2ff2395bd9457f4f92eebb3a0 to your computer and use it in GitHub Desktop.
Save billkindle/4ae11eb2ff2395bd9457f4f92eebb3a0 to your computer and use it in GitHub Desktop.
Capture string output from EXE
# Send STDOUT to a string variable so it can be parsed later in a script
# WIP - Not fully tested yet
$StrOutput = [string] (& myApp.exe 2>&1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment