Author Topic: Starting notepad.exe from C# - ProcessStartInfo  (Read 1784 times)


  • Administrator
  • Full Member
  • *****
  • Posts: 69
Starting notepad.exe from C# - ProcessStartInfo
« on: October 24, 2011, 12:46:32 pm »
To invoke notepad.exe or any other process, you can use the Process.Start method defined under the namespace System.Diagnostics.


Note that you do not need to provide a full path for notepad.exe. As long as it is found in the system path, it would execute the process the successfully.

If you want to pass arguments to the process, then use the class ProcessStartInfo that can accept the program name and arguments.

ProcessStartInfo info = new ProcessStartInfo("notepad.Exe", "a.txt");


Disclaimer: This web site is for educational and informational purposes only. Click here to read the Disclaimer.
Content copyright 2010-2014. Kathiresan. All rights reserved.
This page is using SMF version 2.0.1