Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Opening Programs
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
guttface




PostPosted: Thu Apr 29, 2004 3:33 pm   Post subject: 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.
Sponsor
Sponsor
Sponsor
sponsor
Paul




PostPosted: Thu Apr 29, 2004 3:48 pm   Post subject: (No subject)

You could use the include command.
Is it something like Recsneps FP?
check it out in the FP contest section.
Tony




PostPosted: Thu Apr 29, 2004 4:47 pm   Post subject: (No subject)

could use
code:

if Sys.Exec("anotherProgram.exe") then
put "another program is now running"
else
put "some error..."
end if


if the game is an executable
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
shorthair




PostPosted: Thu Apr 29, 2004 6:15 pm   Post subject: (No subject)

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




PostPosted: Fri Apr 30, 2004 4:42 am   Post subject: (No subject)

shorthair wrote:
" C:\\Mydocs\Hello\Goodbye.exe"

Actually, that should either be
C:\\Mydocs\\Hello\\Goodbye.exe
or
C:/Mydocs/Hello/Goodbye.exe
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: