I have an application located in a directory that is included in the PATH environment variable. So, if called from any directory with the DOS command line, the launch will succeed.
What is the easiest way to achieve the same thing in a .NET app?
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 could try to use the CMD command with this syntax
This is a static method and requires two arguments:
Using CMD /C your_app_name.exe we start another instance of the command interpreter asking it to run you application and then exit.