I'm sure that I can solve any doubts in Turbo C ,Graphics Programing ,Mouse, Hardware Programming ,File System ,Interrupts, BIOS handling , TSR Programming , General Concepts in C Language, handling inline Assembly statements
Question Case:- Im my desktop, there is an ITQUE.EXE file.
Que:- I want to make a program in C language to Run this ITQUE.EXE file. Plz give me the program.
Answer Hi Dear ashok !
A group of built- in functions are available to perform this task suppose you are working in c:\tc directory , and you wish to execute a EXE file named "sample.exe"
just use the "spawnl()" function available in process.h header file
FILE : sample.c
void main()
{
printf("Sample .c Program\n");
}
/* save and compile the file */
FILE: EG.C
void main()
{
spawnl(P_WAIT , "sample.exe" , NULL);
printf("This is from eg");
}
The output of eg.c will be:
sample.c Program
This is from eg
this simple C program will execute your sample.exe program and return control to the main program .
Here what you supposed to do is to specify the correct path name ( where your .EXE file located in your system . ) as a second argument to the spawnl() function .