how to run a bat file using a button in V. C#

November 25, 2010 at 04:46:49
Specs: Windows Vista
hi.. i want to run a particular batch file when i click a button . pls tell me code in visual C# .. thanks in advance....

See More: how to run a bat file using a button in V. C#

Report •

#1
Report •

#2
December 3, 2010 at 19:01:33
System.Diagnostics.Process myProcess = new System.Diagnostics.Process();
Proc.StartInfo.FileName = "MyBatchFile.bat";
Proc.Start();

should do it


Report •
Related Solutions


Ask Question