Sign in to follow this  
Followers 0
Shadowpp

Capture exe output to a Variable

4 posts in this topic

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.

Share this post


Link to post
Share on other sites



A simple but not that efficent option would be the clipboard.

Share this post


Link to post
Share on other sites

can the .exe put the output to the command prompt?

Share this post


Link to post
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
Sign in to follow this  
Followers 0