Run .bat file?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

This is probably exceedingly simple, but I don't know .net well enough yet to
know quite where to look. I would like to have a button on a windows form
that, when clicked, runs a batch file on the system. Is there a simple way
to do this?
Thanks
 
kmbarz said:
I would like to have a button on a windows form
that, when clicked, runs a batch file on the system.

\\\
System.Diagnostics.Process.Start("C:\foo.bat")
///
 

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