What Is MSI File And How Is It Different From EXE File?

C# - how i can run an exe file from another exe file ?

  • For example : how i can run " hello world " ( console application ) exe file from another exe file? ----Thanks For Your Time.---

  • Answer:

    System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.EnableRaisingEvents=false; proc.StartInfo.FileName="calc"; proc.Start(); This will run calc.exe....... IF you want another EXE file then System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.EnableRaisingEvents=false; proc.StartInfo.FileName="c : \\ dotnetstuff \\ someexe.exe"; proc.Start();

Armen K at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

Shell "C:\Path\Program.exe" (For basic, not sure about C#. Worth a try.)

Brian

System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.EnableRaisingEvents=false... proc.StartInfo.FileName="<<YOUR EXE PATH GOES HERE>>" proc.Start();

Krex

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.