C# - Start external program over C#

By , 12/5/2012
(1 ratings)
That's how you open external programs. Handing over parameters is possible too.

Alternatively you can directly open a file:
P.StartInfo.FileName = "C:\\test.txt";

Author: Jan Welker, translation by Michael List
Translate to VB
// using System.Diagnostics;
Process P = new Process();
P.StartInfo.FileName   = "notepad.exe";
// here you can hand over e.g. a text file
// P.StartInfo.Arguments = "Test.txt";



Log in, to comment!