I’m trying to run a batch file with a cmd file I have in my resources. I’m not trying to extract them anywhere. I simply want to edit the bat command in the form and run it with the cmd file I have. Is this possible?
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.
There’s no way to run a
.cmdor.batfile without saving it to disk first. It has to be there forcmd.exeto read and interpret. You’ll have to save it to disk first and run it from there.Once you save it, you can run it using System.Diagnostics.Process. From the link’s VB.Net example: