Henry Rich <[email protected]> wrote:
> I do that: I have
> 'Monitor';'~zip/quizmon';0
> but, in the end, how does ~zip get defined?

I have exactly the same problem whenever I develop work for clients:
I must either tell them that they have to introduce Yet Another
Path moniker to locate the project files or we have to agree to put
them into the same location; which may not even possible, because
I may just have a C: drive and their C: may be full or they may
lack the permissions to put things there.

The projects I write sometimes "self-locate" themselves.  This is
the code I used in a very old package:

THIS_SCRIPT_DIR =: 'at this point, just some dummy value'
THIS_SCRIPT_DIR =: >{. pathname >(4!:4 <'PATH_wb_') { 4!:3 ''

(All scripts of the project where then "buildsource"d into
THIS_SCRIPT_DIR and thusly "load"able.  Methinks "buildsource"
doesn't exist anymore these days -- it extended the PUBLIC table.)

> It [stick location]  changes from machine to machine.  And sometimes
> there is more than one USB drive installed in a machine...

And sometimes, you want two versions of the same stuff in two directories,
and run some both alternately, without constantly having to adjust some
"~zip" locator.

                                                        Martin
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to