
-----------------------------------
guttface
Thu Apr 29, 2004 3:33 pm

Opening Programs
-----------------------------------
I was wondering if there was a way to run a turing program from another program. What I wanted to do was have a 4-in-1 game program, which linked to the games from inside the program. You would run the program, select a game to play, and then it would open. I couln't find the way to do this from Turing Help. Thanks.

-----------------------------------
Paul
Thu Apr 29, 2004 3:48 pm


-----------------------------------
You could use the include command.
Is it something like Recsneps FP?
check it out in the FP contest section.

-----------------------------------
Tony
Thu Apr 29, 2004 4:47 pm


-----------------------------------
could use

if Sys.Exec("anotherProgram.exe") then
put "another program is now running"
else
put "some error..."
end if


if the game is an executable

-----------------------------------
shorthair
Thu Apr 29, 2004 6:15 pm


-----------------------------------
Remeber that , in tonys way , turing assums the file you want to run is in the same directory as the one your running , so if its somewhere elso on hte PC , you have to use the full destination 

" C:\\Mydocs\Hello\Goodbye.exe"

but you should always use tonys way , becuse if you use it on another computer you have ot keep changing the destination  ,so get in the hait of placing the files you want ot open in the same directory , unless its needed that it stay where it is "


Hope this helped

-----------------------------------
Raugrist
Fri Apr 30, 2004 4:42 am


-----------------------------------
" C:\\Mydocs\Hello\Goodbye.exe"
Actually, that should either be
     C:\\Mydocs\\Hello\\Goodbye.exe
or
     C:/Mydocs/Hello/Goodbye.exe
