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

Username:   Password: 
 RegisterRegister   
 Sys.Exec to a certain path
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
irobots




PostPosted: Mon May 06, 2013 9:58 pm   Post subject: Sys.Exec to a certain path

What is it you are trying to achieve?
Sys.Exec


What is the problem you are having?
It is not executing a file which although is not in the same folder as the turing program, has the directions starting from C as to where to go.


Describe what you have tried to solve this problem
I put File.Exists to the location of the file i want to execute and it came back true. Sys.Exec does not work though.




Please specify what version of Turing you are using
4.1.1
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Mon May 06, 2013 11:02 pm   Post subject: RE:Sys.Exec to a certain path

Code demo plz.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
irobots




PostPosted: Tue May 07, 2013 7:03 am   Post subject: Re: Sys.Exec to a certain path

This is the code I have for now. The turing program will be located on the desktop. The folder "Temporary files" is also located on the desktop and inside the folder is Location.vbs which is what I want the turing program to run


if not Sys.Exec ("Temporary Files/Location.vbs") then
cls
put "Run Failed. 'Location.vbs' is missing"
end if

Once again, it is recognised as a file when I run File.Exists in place of the Syhs.Exec
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  [ 3 Posts ]
Jump to:   


Style:  
Search: