There were several other similar posts, but I could not pinpoint one that relates entirely to my issue.
Simply put, say my application exe file is located in C:\MyApp\run.exe,
how can I find the programatically find the path C:\MyApp
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.
Two of the answers given are correct, but rely on using Windows Forms. If that is not your cup of tea, there are alternatives.
and also