Results 1 to 6 of 6

Thread: [RESOLVED] Process question and Redirecting Standard Output

  1. #1

    Thread Starter
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Resolved [RESOLVED] Process question and Redirecting Standard Output

    Hi all,

    I am trying to run a command line program from my GUI application, and capture the output.

    Currently, it all works fine, but it only captures the output after the process exists.

    Is there a way, to check the standard output while the process is running? I've spawned a separate thread for this, but currently it still waits for the process to exit.

    So, instead of getting a whole heap of text dumped at the end, I want to grab the text as it becomes available.

    Any help or links are appreciated.

    Cheers,

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: Process question and Redirecting Standard Output

    I'm not sure whether it will address your issue or not but gigemboy has posted code that will redirect standard output in the VB.NET CodeBank forum. It might be worth a look.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: Process question and Redirecting Standard Output

    Ta jmc, I'll take a look.

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  4. #4

    Thread Starter
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: Process question and Redirecting Standard Output

    Do you have a link handy jmc?

    Cheers,

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: Process question and Redirecting Standard Output

    Just go to the VB.NET CodeBank forum and sort by Thread Starter. Gig's stuff will be on about page 3.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  6. #6

    Thread Starter
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: Process question and Redirecting Standard Output

    Thanks jmc, I found it.

    I managed to get it working in C#. Cheers

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width