Jump to content
Sign in to follow this  
OwenWatson

Generating StdOut from AutoIt?

Recommended Posts

OwenWatson

I'd like to use a compiled AutoIt script with another program that can run DOS programs and extract the StdOut output. I see the ConsoleWrite is specifically exempted from this facility: is there any other way to do it?

Share this post


Link to post
Share on other sites
mrbond007

I'd like to use a compiled AutoIt script with another program that can run DOS programs and extract the StdOut output. I see the ConsoleWrite is specifically exempted from this facility: is there any other way to do it?

Is this what you'r looking 4 ?

Global $data, $pid = Run(@ComSpec & ' /c dir c:\*.* /s', '', @SW_HIDE, 2)

Do
    $data &= StdOutRead($pid)
Until @error

FileWrite('c:\test.txt', $data)

Share this post


Link to post
Share on other sites
OwenWatson

Sorry: didn't explain it properly.

I want to create a DOS executable with AutoIt, that when I run produces StdOut that I can specify from within the executable.

Is this clear?

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.