Can we execute a batch file (*.bat) using Application Domain?
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.
Application Domains are a purely CLR concept, they have no relevancy to anything that’s not a managed library, thus there’s no way to run a batch file within an appdomain. The
Processobject that the batch file runs under will be tied to one specific appdomain, but it will still result in a separate process being instantiated to run your batch file.There’s some fairly good explanatory text under Remarks in the MSDN AppDomain Class documentation that should help you get a handle on what precisely an appdomain is, and what you can and can’t do with one.