Board index » cppbuilder » Execute a DOS command

Execute a DOS command

It might be asked many times before. I would appreciate an answer again.
How to execute a DOS command, especially a .BAT file?  Thanks!
Jack L
 

Re:Execute a DOS command


Use WinExec, ShellExecute, or CreateProcess for executing external
files/programs

Gambit

Quote
"Jack Lawrance" <emyt...@hotmail.com> wrote in message

news:39108fd1@dnews...
Quote
> How to execute a DOS command, especially a .BAT file?

Re:Execute a DOS command


another simple way:

#include <stdlib.h>

int system(const char *command);

Other Threads