Jump to content

Capture exe output to a Variable


Recommended Posts

I am looking for a method to grab the output of an exe ( not the exit code ) and store it in a variable without having to pipe it to a text file or registry key.

I have tried $Var = Run ("app.exe") but that only stores the exit code in the variable, not the output of the exe.

Can anyone suggest a solution? Any help is appreciated.

Link to comment
Share on other sites

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...