Results 1 to 3 of 3

Thread: Capturing output

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Resolved Capturing output

    How do I capture the output of let's say a compiler? I would like to fire an interpreter for example, perl.exe and I want to capture the output.

    Thanks in advance.
    Last edited by nebulom; Nov 7th, 2006 at 11:02 PM.

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

    Re: Capturing output

    You can run an executable like that using Process.Start. Gigemboy has posted code in the VB.NET CodeBank to redirect standard output from the command prompt. It shouldn't be too difficult to adapt it to C#.
    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
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Re: Capturing output

    Ok, thanks. Will look at it.

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