I have an exe file reference in my C# project. How do I invoke that exe from my code?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Generic Generics in Managed C++
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
Example:
If your application needs cmd arguments, use something like this:
Look at Process.Start and Process.StartInfo
Example:
Compiling the Code
Copy the code and paste it into the Main method of a console application. Replace "mspaint.exe" with the path to the application you want to run.