Friday, January 7, 2011

How to use Console Application In GUI application

System.Diagnostics.Process p = new System.Diagnostics.Process();

      // fullpath of filename

      p.StartInfo.FileName = "c:\\ConsoleApp.exe";

      // start the console app

      p.Start();

      // wait till the execution of ConsoleApp

      p.WaitForExit();

No comments:

Post a Comment