using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RunNotepad { class Program { static void Main(string[] args) { System.Diagnostics.Process.Start("notepad.exe"); } } }
Here is what you should do if you want to open a file in Notepad:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RunNotepad { class Program { static void Main(string[] args) { System.Diagnostics.Process.Start("notepad.exe", "C:/path/filename.txt"); } } }
Replace C:\path\filename.txt with the path and name of the file. Also, you would usually do backward-slash in Windows instead of forward slash. However, if you use backward-slash the application will run up a bunch of errors.
You can change the application that is launched. If you had SeaSurf installed at C:\Users\yourusername\Desktop\SeaSurfForWindows.exe, for example, you could launch that.