On Thu, 30 Nov 2006 10:50:56 +0530 (IST)
deepak battu <[EMAIL PROTECTED]> wrote:

> Hi ,
>    How can we execute a dos command from the c program.please provide
>    syntax.
>                                                                     
                                                                        
  deepak

int main() {
  int i;

  i=fork();
  if( i == 0 ) {
    exec( "command", NULL );
  }
}

-- 
Regards, Ed                      :: http://www.bsdwarez.net
just another perl person
Mr. T Has been seen in the same location as Both Chuck Norris and Vin 
Diesel, thus Proving he can be in more then one place at one time. 

Reply via email to