static void Main(string[] args) { string sDir = new DirectoryInfo(".").FullName + @"\"; ShellCtrl pShellCtrl = new ShellCtrl(sDir + @"mrdebug.exe " + sDir + @"mrdebug_testproc.exe"); pShellCtrl.WriteLine("run"); System.Console.ReadKey(); }