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#
  4. Getting input from command window?

Getting input from command window?

Scheduled Pinned Locked Moved C#
tutorialcsharpvisual-studioquestion
6 Posts 2 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.
  • L Offline
    L Offline
    liqnit
    wrote on last edited by
    #1

    Hi I don't knot know if it is possible . I want to get the output of a program from a command window into a textbox\Rich textbox. For example: When compiling in Visual Studio 6 using a command line option (no GUI) i get redirect the output into a text file . 1) Is it possible to get that input into a textbox? 2) If not how to display the ongoing progresses from the file? Thanks

    Have a nice Day

    O 1 Reply Last reply
    0
    • L liqnit

      Hi I don't knot know if it is possible . I want to get the output of a program from a command window into a textbox\Rich textbox. For example: When compiling in Visual Studio 6 using a command line option (no GUI) i get redirect the output into a text file . 1) Is it possible to get that input into a textbox? 2) If not how to display the ongoing progresses from the file? Thanks

      Have a nice Day

      O Offline
      O Offline
      originSH
      wrote on last edited by
      #2

      http://msdn2.microsoft.com/en-us/library/system.diagnostics.process.aspx[^]

      L 1 Reply Last reply
      0
      • O originSH

        http://msdn2.microsoft.com/en-us/library/system.diagnostics.process.aspx[^]

        L Offline
        L Offline
        liqnit
        wrote on last edited by
        #3

        I am missing something here... I red the page but couldn't get an answer... please explain:^)

        Have a nice Day

        O 1 Reply Last reply
        0
        • L liqnit

          I am missing something here... I red the page but couldn't get an answer... please explain:^)

          Have a nice Day

          O Offline
          O Offline
          originSH
          wrote on last edited by
          #4

          liqnit wrote:

          am missing something here...

          yes :P

          liqnit wrote:

          I red the page but couldn't get an answer...

          Seriously? Did you check out the members on the class? That link was to the main page for the class, the links at the bottom provide more information such as details on the Members of the class. If you had "StandardOutput", "Start" and "GetProcesses" are pretty obvious. GetProcesses will retrieve a list of all running processes from which you can get the one you want. Or you can use Start to run it if it's not already running. Then StandardOutput gives you access to the output stream.

          L 1 Reply Last reply
          0
          • O originSH

            liqnit wrote:

            am missing something here...

            yes :P

            liqnit wrote:

            I red the page but couldn't get an answer...

            Seriously? Did you check out the members on the class? That link was to the main page for the class, the links at the bottom provide more information such as details on the Members of the class. If you had "StandardOutput", "Start" and "GetProcesses" are pretty obvious. GetProcesses will retrieve a list of all running processes from which you can get the one you want. Or you can use Start to run it if it's not already running. Then StandardOutput gives you access to the output stream.

            L Offline
            L Offline
            liqnit
            wrote on last edited by
            #5

            Thanks a lot i guess i am not as good as i thought... will definitely try this thank you very much

            Have a nice Day

            O 1 Reply Last reply
            0
            • L liqnit

              Thanks a lot i guess i am not as good as i thought... will definitely try this thank you very much

              Have a nice Day

              O Offline
              O Offline
              originSH
              wrote on last edited by
              #6

              No probs. I'd highly recommend getting used to the MSDN as its very handy for checking out classes. If your using Visual Studio the intellisense can be invaluable as it can be used to see everything accessable on an object and provides comments.

              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