Run Console app and handle input and output
-
Hello, I have a console app that I can launch using CreateProcess() however I need to obtain the input and output stream from this app so I can do some processing on the data it provides (basically, automate the process of typing data in and reading the output from the console application). I guess there are some useful articles out there in CP? Can someone point me in the right direction please?? Much appreciated. Adam. www.beachwizard.com/travelogue[^] "I spent a lot of my money on booze, birds and fast cars. The rest I just squandered" George Best.
-
Hello, I have a console app that I can launch using CreateProcess() however I need to obtain the input and output stream from this app so I can do some processing on the data it provides (basically, automate the process of typing data in and reading the output from the console application). I guess there are some useful articles out there in CP? Can someone point me in the right direction please?? Much appreciated. Adam. www.beachwizard.com/travelogue[^] "I spent a lot of my money on booze, birds and fast cars. The rest I just squandered" George Best.
Check out An Advanced Windows Hotfix Manager[^] - in that app I run a console mode process and capture its stdout. --Mike-- Just released - RightClick-Encrypt v1.4 - Adds fast & easy file encryption to Explorer My really out-of-date homepage Sonork-100.19012 Acid_Helm
-
Check out An Advanced Windows Hotfix Manager[^] - in that app I run a console mode process and capture its stdout. --Mike-- Just released - RightClick-Encrypt v1.4 - Adds fast & easy file encryption to Explorer My really out-of-date homepage Sonork-100.19012 Acid_Helm
-
Hello, I have a console app that I can launch using CreateProcess() however I need to obtain the input and output stream from this app so I can do some processing on the data it provides (basically, automate the process of typing data in and reading the output from the console application). I guess there are some useful articles out there in CP? Can someone point me in the right direction please?? Much appreciated. Adam. www.beachwizard.com/travelogue[^] "I spent a lot of my money on booze, birds and fast cars. The rest I just squandered" George Best.
Read "Creating a Child Process with Redirected Input and Output" from MSDN.