Load external exe with command line arguments?

Posted By: jaknine

Load external exe with command line arguments? - 04/26/09 05:50

I'm trying to find the answer to something real quick regarding 3DGS. I'm pretty sure this is possible but then again I've never had to do it so it may not be.

Is it possible to launch an external app from within a 3DGS game and pass command line arguments to that app?

For instance, something like:

Code:
commandLaunchApp ("myapp.exe 'arg1 arg2'");

Can someone point me to the docs where this type of functionality is detailed, or ideas on how it could be managed? I've looked through the manual, etc. and for some reason I'm not seeing anything like this in there.

Thanks!
Posted By: Quad

Re: Load external exe with command line arguments? - 04/26/09 05:54

exec

see manual

exec("program.exe","args");
Posted By: jaknine

Re: Load external exe with command line arguments? - 04/26/09 06:43

Oh there is it. I knew there was something in there that would do that, but after 7 years of using 3DGS on and off my brain went out for a snack and I'd forgotten all about exec, lol. Thanks very much.
© 2024 lite-C Forums