Sign in to follow this  
Followers 0
OwenWatson

Generating StdOut from AutoIt?

3 posts in this topic

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



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

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  
Followers 0