Используйте System.Diagnostics.Process.Start()
метод.
Выезд эта статья о том, как использовать его.
Вот отрывок полезного кода:
using System.Diagnostics;
// Prepare the process to run
ProcessStartInfo start = new ProcessStartInfo();
// Enter in the command line arguments, everything you would enter after the executable name itself
start.Arguments = arguments;
// Enter the executable to run, including the complete path
start.FileName = ExeName;
// Do you want to show a console window?
start.WindowStyle = ProcessWindowStyle.Hidden;
start.CreateNoWindow = true;
int exitCode;
// Run the external process & wait for it to finish
using (Process proc = Process.Start(start))
{
proc.WaitForExit();
// Retrieve the app's exit code
exitCode = proc.ExitCode;
}
существует намного больше, можно сделать с этими объектами, необходимо прочитать документацию: ProcessStartInfo, Процесс .
System.Diagnostics.Process.Start("PathToExe.exe");
Дополнительно Вы захотите использовать Переменные среды для своих путей если вообще возможный: http://en.wikipedia.org/wiki/Environment_variable#Default_Values_on_Microsoft_Windows
, НАПРИМЕР,
существует намного больше выезда ссылка для более длинного списка.
System.Diagnostics.Process.Start( @"C:\Windows\System32\Notepad.exe" );