private void startWithNotepad(String fileName) { var startInfo = new ProcessStartInfo { FileName = "notepad.exe", Arguments = fileName }; var process = Process.Start(startInfo); waitForProcessAndActivate(process); }