Monday, May 24, 2010

C program should open up another application while executing...?

need a C lang code which should open up another application (say an .exe file) while executing...


platform: Windows





i knw it can be done using exec() call in linux, but how to do it in windows?

C program should open up another application while executing...?
#include %26lt;stdlib.h%26gt;


#include%26lt;stdio.h%26gt;





int main()


{


(void)system("C:\\Windows\\System32\\n...


return(0);


}





I took this code from :


http://www.daniweb.com/forums/thread1068...





Please alos check this:


http://www.programmersheaven.com/mb/Cand...





I am sorry, I don't have C / C++ IDE on my system right now so could not check these. I hope they work. Thanks

nil

No comments:

Post a Comment