TXTechie Posted July 21, 2016 Posted July 21, 2016 I normally launch things silently, but now I want to launch a batch (.cmd) file and have it run as normal displaying it's standard output to the user. Whether I use ShellExecuteWait or RunWait, the command prompt window is displayed, but the output is blank (although I know that the batch file is processing normally because it also produces a log file). If this is because AutoIt is re-directing the standard I/O of the batch file/console window, is there a way I can bypass the I/O redirection? Thanks, TXTechie
SadBunny Posted July 21, 2016 Posted July 21, 2016 Works for me: RunWait("c:\tmp\helloworld.bat") This is my batch file: Quote @echo off echo Hello world! timeout /t 5 Works like a charm Maybe write a reproducer? Roses are FF0000, violets are 0000FF... All my base are belong to you.
TXTechie Posted July 21, 2016 Author Posted July 21, 2016 Thank you for your response, SadBunny. It caused me to dig deeper into my scripts and it's unrelated to AutoIt. Please disregard this post/message thread. TXTechie
SadBunny Posted July 21, 2016 Posted July 21, 2016 Reproducer snippets FTW! Roses are FF0000, violets are 0000FF... All my base are belong to you.
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