Category : Network Files
Archive   : RUN1.ZIP
Filename : RUN.C

 
Output of file : RUN.C contained in archive : RUN1.ZIP

/* Run.c - Program to allow network login scripts to call
* batch files.
*
* TurboC v2.0
*
* Richard Liming 8/16/91
*/

#include
char *batname;

main(int argc, char *argv[]) {

int ret;


if (argc != 2) {
clrscr();
printf("Argv string empty\n");
printf("Usage: RUN where is a batch file name in\n");
printf("same directory as run.exe or in path environment string.\n");
printf("Any key ...");
getche();
exit();
}

clrscr();
ret = system(argv[argc-1]);

}