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
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:
- How I can validate input on form before upload file?Best solution by stackoverflow.com
- Can you share some tips on how I can preserve my collection of paintings?Best solution by Yahoo! Answers
- How I can open UIF File?Best solution by Yahoo! Answers
- Is there anyway I can transfer on yahoo account to another?Best solution by Yahoo! Answers
- Can anyone suggest how I can improve myself?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.