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.
 
Back
Top