Does anybody know how to execute command prompt from C code?
Posted on 2003-06-02 08:08:48 by applecin
check shellexecute
Posted on 2003-06-02 08:23:09 by dion
For C, use stdlib's system() function.
Quick example:

[size=12]#include <stdlib.h>

#include <stdio.h>

int main( int argc, char **argv )
{
int n;
n = system( "copy foo.txt bar.txt" );
if( n == -1 )
printf( "Error #%d\n", errno );
else
printf( "Ok\n" );
return 0;
}[/size]
Posted on 2003-06-02 08:48:58 by iblis