using System.Diagnostics; class MainClass { public static void Main() { ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.FileName = "notepad.exe"; startInfo.Arguments = "yourFile.cs"; Process.Start(startInfo); } }