a note on use of system() function
it will suspend the execution of the thread, in which u make a call to system, until the command being executed is completed.
for example, if you call
system(notepad.exe);
printf("notepad launched");
the printf wont be executed until u close the notepad just opened by ur program
so for that case, if u are on linux u can use fork to create seprate process. and in windows u can use CreateProcess
look for the manual pages and documentation for details on their usage
and if u r stuck, u r alwayswelcome here.
akshay
Main Topics
Browse All Topics





by: pscsukPosted on 2003-10-03 at 07:41:12ID: 9485058
system("myprogram.exe");