Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 284347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:27:02+00:00 2026-05-12T05:27:02+00:00

My application needs to: Run an external command-line application Capture the standard output/error during

  • 0

My application needs to:

  1. Run an external command-line application
  2. Capture the standard output/error during execution
  3. Parse the data from the output/error and use it for status display in the main app

While it’s not hard to do it, it seems to me it’s a very common task, and I was wondering if there’s a library or framework simplifying this task in C#.

Edit: Here’s a “Mono.Options inspired” example of the kind of thing I’m looking for:

ProcessWithParser proc= new ProcessWithParser(filename, arguments);
proc.AddWatch("percent=??", v => this.percent = Convert.ToInt32(v));
proc.Start();

In the “concept” above, it would locate “percent=” in the output, read the next two characters as a string, and call the delegate using this string as a parameter.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T05:27:02+00:00Added an answer on May 12, 2026 at 5:27 am

    The base class library provides the tools for this already – there isn’t much a framework would really need to add to it.

    Redirection of the process standard input and output streams is trivial. RegEx and using streams makes parsing this fairly easy, as well.

    The framework pretty much does what any (flexible) custom library would normally do in other languages.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I set up two external executables to run from a c# application
Part of our java application needs to run javascript that is written by non-developers.
I'm building an application that needs to run through an XML feed but I'm
My ASP.NET application needs a number of supporting services to run periodically in the
I am writing an application in C# that needs to run as a service
I have a C# Application that does some maintenance tasks. It needs to run
I need to run a stored procedure from a C# application. I use the
my C# application reads data from special USB device. The data are read as
My application needs to run some scripts, and I must be sure that the
I need to access an excel file, but the application needs to run on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.