How to open any Application (Process) Like Notepad, wordpad with parameter

The code shows how to run any application (EXE) or open application like Notepad with the parameter

Here i have taken example of how to open Notepad with some file.



using System.Diagnostics;

ProcessStartInfo info = new ProcessStartInfo("NotePad.exe","C:\\abc.txt");

Process.Start(info);



The another way to do



Process.Start("NotePad.exe","C:\\abc.txt");


Comments

No responses found. Be the first to comment...


  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: