1
Answer

Bat file print

Ask a question
Abdu Rafeeq

Abdu Rafeeq

13y
1.4k
1
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)