OwenWatson Posted April 10, 2007 Posted April 10, 2007 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?
mrbond007 Posted April 10, 2007 Posted April 10, 2007 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) Projects : Space Regain - Memory Fusion - PWGT - Chip-ITGames : BrainPain - BrainPain Director's Cut - ProSpeed Games Pack (New)Vista vs XP : the forbidden fight
OwenWatson Posted April 10, 2007 Author Posted April 10, 2007 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?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now