Abdu Rafeeq

Abdu Rafeeq

  • NA
  • 113
  • 265.4k

Bat file print

Jul 19 2011 8:08 AM
I have a bat file a.bat

I want print throgh c# code..
How?

I used given code but not print

System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents = false;
proc.StartInfo.FileName = "c:\\a.bat";
proc.StartInfo.Arguments = string.Format("C-Sharp Console application");
proc.StartInfo.CreateNoWindow = false;
proc.Start();

Answers (1)