How to run apps in different directory?
|
10-13-2014, 03:20 AM
Post: #3
|
|||
|
|||
RE: How to run apps in different directory?
(10-13-2014 02:30 AM)ohitsanazn Wrote: Is it possible? I'm assuming you're asking about the 50g since you've asked other questions about that calculator recently. While there's no PATH-like variable designated for the RPL systems, there is a default behavior defined where the operating system will generally search in the current directory and work upwards through each parent when it attempts to find a referenced global variable (aka. user-stored object). As such, the only location that you could store all of your toggle apps for universal access is in the HOME directory (since that would be found from any location). Items stored in the HOME directory will usually be found simply by using their name as a reference, regardless of which directory the calculator is currently browsing. That's probably not what you had in mind, but there's several other options (some more advanced than others). Perhaps the easiest would be to store them in preferred location (eg. UTILS / TGL), then in the code for your CUSTOM menu you would simply run the program by placing its name prefaced by the parent directories in braces, then executing with EVAL as follows: Code: { HOME UTILS TGL PROG1 } EVAL Note that, when using this method, the current directory is changed to the one containing the referenced object. So you may want to take that into account in your code (see the PATH command). |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
How to run apps in different directory? - ohitsanazn - 10-13-2014, 02:30 AM
RE: How to run apps in different directory? - Peter Murphy - 10-13-2014, 03:02 AM
RE: How to run apps in different directory? - DavidM - 10-13-2014 03:20 AM
RE: How to run apps in different directory? - ohitsanazn - 10-13-2014, 04:11 AM
RE: How to run apps in different directory? - DavidM - 10-13-2014, 04:44 AM
RE: How to run apps in different directory? - ohitsanazn - 10-13-2014, 06:48 PM
|
User(s) browsing this thread: 1 Guest(s)