Quote:
Thanks for the helpful replies - with your help (and finding a
manual), here is what I settled on:
I three programs in a subdirectory (path is Home->Optics->Cnvrt)
which I want to appear in a custom menu in the home directory.
When I run them from this custom menu, I want to remain in (or
return to) the home directory. The three programs are labeled
"->dBm", "->mW", and "l<->f".
My CST variable in the home directory looks like this:
{ { "-dBm" {<< OPTICS CNVRT -dBm HOME>>}}
{ "-mW" {<< OPTICS CNVRT -mW HOME>>}}
{ "l-f" {<< OPTICS CNVRT l-f HOME>>}}}
This works fine. It seems inelegant in that it actually switches
directories, runs the program, and then switches back. I would
prefer to just run the program via a called path from home, but
they are really small short conversions, so it is no matter.
Maybe try using "path names" in the programs, such as:
\<< { OPTICS CNVRT dBm } RCL EVAL \>>
where "\<<" and "\>>" represent the program delimiters. Substitute
your actual directory and variable names.
Effectively, the above is equivalent to saving the current
directory (in this case, HOME), switching to the CNVRT directory,
recalling the contents of variable dBm, switching back to the
original directory, and finally evaluating the contents of the
variable.
If you want to be able to use this from somewhere other than the
home directory, then make the program:
\<< { HOME OPTICS CNVRT dBm } RCL EVAL \>>
Your CST variable could be something like:
{
{ "\->dBm" \<< { HOME OPTICS CNVRT dBm } RCL EVAL \>> }
{ "\->mW" \<< { HOME OPTICS CNVRT mW } RCL EVAL \>> }
{ "l<->f" \<< { HOME OPTICS CNVRT lf ) RCL EVAL \>> }
}
("\->" represents the "right arrow" character.)
Regards,
James