Programm ausführen in C#

Um mal schnell ein Programm in C# zu starten braucht man folgenden Code:

using System;
using System.Diagnostics;
 
static void Main(string[] args)
{
   Process p = new Process();
 
   p.StartInfo.FileName   = "notepad.exe";
   p.StartInfo.Arguments = "text.txt";
 
   p.Start();
}

Comments are closed.