Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Run Console app and handle input and output

Run Console app and handle input and output

Scheduled Pinned Locked Moved C / C++ / MFC
comjsonquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    adamUK
    wrote on last edited by
    #1

    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.

    M D 2 Replies Last reply
    0
    • A adamUK

      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.

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      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

      A 1 Reply Last reply
      0
      • M Michael Dunn

        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

        A Offline
        A Offline
        adamUK
        wrote on last edited by
        #3

        Thanks Mike, Appreciate it. 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.

        1 Reply Last reply
        0
        • A adamUK

          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.

          D Offline
          D Offline
          Dudi Avramov
          wrote on last edited by
          #4

          Read "Creating a Child Process with Redirected Input and Output" from MSDN.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups