PDA

View Full Version : c++ and the command line


CowboyInMe
03-01-2005, 11:20 PM
Do you need to call a batch file to run command line commands in c++ or does c++ have its own class for that?

cfc
03-01-2005, 11:36 PM
I think int system(const char* command) (http://www.cplusplus.com/ref/cstdlib/system.html) in stdlib.h is what you're looking for.

CowboyInMe
03-02-2005, 02:21 AM
Yes that is perfect. Thank you