Game Development Community

Execute external .exe

by University of Gotland (#0006) · in Torque Game Builder · 05/13/2008 (6:36 am) · 2 replies

Can I execute external .exe's in torque?

#1
05/13/2008 (7:19 am)
You will need to have the pro version and modify the source code to execute external applications.
#2
05/17/2008 (2:38 am)
If it's just some arbitrary exe you want to launch, you can use shellExecute like so

// simple
shellExecute( "C:/Path/To/My/Executable.exe" );

// more elaborate
shellExecute( "C:/Path/To/My/Executable.exe", "-my -arguments -here", "C:/Path/To/Working/Directory" );

For anything more than this, you'd probably have to go in and modify the engine, like David said.