C PROGRAM TO ACCESS COMMAND PROMPT

#include <stdio.h>
#include<stdlib.h>
int main()
{
   char cmd[256];
   printf( "Enter a command to run: " );
   fgets( cmd, 255, stdin );
   return system( cmd );
}
Share on Google Plus
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment