Teen Programmers Unite  
 

 

Return to forum top

executing batch file within c++ program?

Posted by drew [send private reply] at November 13, 2001, 12:40:27 PM

is it possible to execute a batch file within a c++ program?

Posted by Psion [send private reply] at November 13, 2001, 02:32:00 PM

Yup. You can find the system() function anywhere, and it will let you run a command like you typed it at a command prompt. If you want to do something more complex than that allows, then it becomes platform-specific.

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.