Execut Batch File

  • Thread starter Thread starter J Smithers
  • Start date Start date
J

J Smithers

How do I execute a batch file from a C# Windows app? (the batch file would
be an old style DOS .bat file).
 
J Smithers,

Check out the Process class, as it is used to trigger new processes.
You would most likely call the static Start method, passing the full path of
the batch file you wish to run.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top