Is there a solution/references on how to open or execute certain window programs in C#? For example if i want to open WinZIP or notepad application?
Example on the line of codes are more helpful. But anything are welcomed.
thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use the System.Diagnostics.Process.Start method.
It will work with files that have associated a default program:
Will open the file with its default application.
And even with URLs to open the browser:
Agree with @Oliver, ProcessStartInfo gives you a lot of more control over the process, an example: