try the link to launch an external program Also try fooobar.com/questions/16851 / ...
this is an example here
string winpath = Environment.GetEnvironmentVariable("windir"); string path = System.IO.Path.GetDirectoryName( System.Windows.Forms.Application.ExecutablePath); Process.Start(winpath + @"\Microsoft.NET\Framework\v1.0.3705\Installutil.exe", path + "\\MyService.exe");
And in your case, write the following at the top, which lists everything using namespaces
using System.Diagnostics; using System;
so in your code directly write the code above ...
source share