How to exeute a BAT ??

  • Thread starter Thread starter Marcelo López
  • Start date Start date
M

Marcelo López

Hi all, i'm developing a win app and i need to execute a .bat in the main
constructor (in the codebehind).

Which is the easiest way to do that ?? Could anyone give me an exameple ??

Regards

Marcelo López
Infocorp
Latin America
 
Hi,

Take a look at the System.Diagnostics.Process class. I think you can run
..bat files with help of this class provided you set the ShellExecute
property to "true".
 
Back
Top