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 8227313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:05:13+00:00 2026-06-07T16:05:13+00:00

Is it possible to call some process(or exe) from the main program, send it

  • 0

Is it possible to call some process(or exe) from the main program, send it some parameters, get some processing done and return back the result? If possible, which is the best way to do that?

I have a wpf application for managing mills. This application is used in different mills. The only difference is that the serial port communication for weighing used in the mills are different. Currently the weighing section is programmed into the application. But this makes difficult to maintain, as i have to have different versions of the project dependng on the weighbridge. So I want it like this : I have single version of the main project. The main project calls another process (or exe) and sends in some parameters. This exe does the weighing and sends back the weights. enter image description here

  • 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-06-07T16:05:16+00:00Added an answer on June 7, 2026 at 4:05 pm

    if all you have is another exe file then you can run it using (taken from http://www.dotnetperls.com/process-start)

    ProcessStartInfo startInfo = new ProcessStartInfo();
    startInfo.CreateNoWindow = false;
    startInfo.UseShellExecute = false;
    startInfo.FileName = "dcm2jpg.exe";
    startInfo.WindowStyle = ProcessWindowStyle.Hidden;
    startInfo.Arguments = "-f j -o \"" + ex1 + "\" -z 1.0 -s y " + ex2;
    
    try
    {
            // Start the process with the info we specified.
            // Call WaitForExit and then the using statement will close.
            using (Process exeProcess = Process.Start(startInfo))
            {
               exeProcess.WaitForExit();
            }   
    }
    catch
    {
        // Log error.
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to call an exe file and get result from it? (basic)
Is it possible to call an api exposed in COM exe server from NSIS
Is it possible to call a .ctp file from a layout which is also
Is it possible to call another JSF component from within a custom component (as
Is it possible to call a web service from within Flash (using AS3)? Or
I want to execute a external .exe program from within java. The .exe is
I was wondering if there is a way to detect through some onXXXXX call-back
Possible Duplicate: command prompt do not opens up when calling (.exe) console application from
Possible Duplicate: AJAX request fails to process $_SESSION variable I have some strange issue
It is possible to call a table-valued function directly, or do I need to

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.