Sprague, Webb (OFM) wrote: > Hi all, > > Is there a way to return the path of where a program file is stored such > that I can reference that path inside the program? > > For example, if I have a program stored in C:\STUFF\foo.ijs, I would > like to be able to say "sourcepath=.<J MAGIC HERE>" and then later "load > (sourcepath,bar.ijs)" in order to load a program that is stored in the > same directory.
You can use 4!:3 and 4!:4, as in: (4!:4<'getinputlog_j_') pick 4!:3'' /home/chris/j602/system/extras/util/jadefull.ijs ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
