Re: system_exec()
- Posted by Tone Škoda <tskoda at email.si> Mar 29, 2005
- 549 views
Greg: i don't know what would "command" in system( "exec command", 2 ) be? cklester: thanks for reminding me. so far i didn't find what ive been searching for, only one example of doing it with open_dll() which cant be used in dos. This example: puts (1, "executing\n") system("explorer.exe", 2) system("calc.exe", 2) system("notepad.exe", 2) system("charmap.exe", 2) puts (1, "done\n") opens explorer.exe and calc.exe and then it halts. it looks like it depends on program being executed: explorer.exe returns immediately, calc.exe not (i know because i tried reverse order).