How to use Console Application In GUI application

By Super Man

Here i will show you how you can 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();

How to use Console Application In GUI application  (1178 Views)