How to write some command on a batch file through C++ program?
<p>I need some help regarding my C++ program. A batch file named <code>abc.bat</code> is located somewhere in my hardisk. I know that in C++ I can use this line of code to execute that <code>abc.bat</code> file:</p>

<p><code>system ("file path here\\abc.bat");</code></p>

<p>I want to send some commands to that batch file so that after executing that <code>abc.bat</code> file my C++ program should write commands to its console and execute them.  How can I do that?</p>
