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

  • SEARCH
  • Home
  • 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 730911
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:57:57+00:00 2026-05-14T06:57:57+00:00

I am trying to call a process using System.Diagnostics.Process, send it a parameter, just

  • 0

I am trying to call a process using System.Diagnostics.Process, send it a parameter, just for the sake of trying it out i am sending “-h” which should generate a list of help options and I need the output.

So far I have tried,

        ProcessStartInfo startInfo = new ProcessStartInfo("C:\\agfl\\agfl.exe");

        startInfo.WindowStyle = ProcessWindowStyle.Normal;
        startInfo.CreateNoWindow = false;



        startInfo.Arguments = "-h";


        Process.Start(startInfo);

Any help please?

Thanks 🙂

  • 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-14T06:57:58+00:00Added an answer on May 14, 2026 at 6:57 am
    
    Process process = Process.Start(startInfo);
    String result = process.StandardOutput.ReadToEnd();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 515k
  • Answers 515k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I'm relatively new to doxygen, but disabling SHOW_FILES and VERBATIM_HEADERS… May 16, 2026 at 6:34 pm
  • Editorial Team
    Editorial Team added an answer Alternatively you can pattern match: case maybeValue of Just value… May 16, 2026 at 6:34 pm
  • Editorial Team
    Editorial Team added an answer Found the answer here. http://csharpbits.notaclue.net/2009/07/dynamic-data-custom-field-template.html Basically creating a custom attribute… May 16, 2026 at 6:34 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Am trying to execute ssis package using dtexec utility from c# app(Creating New Process,
I am trying to open a process handle in C# using the OpenProcess function
I am trying to call an ASMX from jQuery using JSON and get a
Using Visual Studio, after attaching to a Process and pressing Pause (Break-All), you switch
I'm trying to generate a Google Map based off of results from a database.
I've Got two Programs (Server / Client) I'm trying to setup IPC for them
I'm trying to make my C# application multi threaded because sometimes, I get an
I'm starting with the C# code example here . I'm trying to adapt it
I'm trying to spawn multiple processes at once in PHP with proc_open, but the
I can call FFmpeg with subprocess.Popen and retrieve the data I need, as it

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.