niko niko - 28 days ago 15
C Question

Opening a batch file (.bat) in a c program?

How do I start running a batch file (.bat) from my c program? I used

system("start /B omanam.bat");


but its not working.How can i make .bat to open through c ?

Answer

Drop the start. It's a cmd.exe thing. Just run system("omanam.bat");.

Comments