execl()'ing batch files in DOS

John Birchfield jb at CSUStan.EDU
Thu May 18 14:17:36 AEST 1989


I have used spawnv () to execute bacth files from DOS in the following
manner...
char *Argv [] = { "command", "/C", "testbat", 0 };

spawnv (P_WAIT, "c:\\command.com", Argv);

I'm not sure but I think that execl () would work more or less the same.

-                                                                      -
===                                                                  ===
John Birchfield                                       1575 Quail Ct.
jb at koko.csustan.edu                                   Turlock, CA  95380
                                                      (209) 634-6243



More information about the Comp.lang.c mailing list