Capture input of the CommandWindow
-
How to capture the status that's getting displayed in command window(local system only) from another windows application..... any ideas???? thanks in advance adi
-
How to capture the status that's getting displayed in command window(local system only) from another windows application..... any ideas???? thanks in advance adi
Make the output text of that console app into a disk file instead of printing to the command window, and then read the contents of the file into a memory buffer and parse that buffer for your needs... But how to do this in your program? here's a solution: Dynamically generate a .BAT batch file in your program, the contents of this batch file is like this: consoleApp.exe >> c:\output.txt Here, consoleApp.exe is the filename of that console app you want to capture its output, and then launch this batch file via CreateProcess win32 API. After the end of console app, what its outputs are placed into the output.txt file... Hope this helps.:laugh: