Jump to content

Generating StdOut from AutoIt?


Recommended Posts

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)
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...