Is there a way to execute another program, such as notepad, as a thread so it shares the same memory space as my program? So if my program ends, so will notepad and so that notepad won’t show up in task manager, just my program?
Share
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.
No, certainly not for a non-managed app like notepad.
For a managed app, however, you can load the assembly using the utilities in
System.Reflectionand begin execution of theMain()method (or, rather entrypoint).However, there are a few features in the
System.Processclass that can help you emulate what you are looking to do.