Henry,
Are you able to describe the J environment/usage at your school a bit more 
holistically? That might help identify an appropriate solution for you - as 
well help identify if there is a more general issue here that would be good to 
address in the upcoming beta!!

I've tried to summarise my understanding of your situation below. Please feel 
free to correct or expand on any points I've got wrong.

J is installed locally on all the computers (WinXP ?). Is it a system install, 
a user install (one for each user), or a custom install of some sort? Where is 
the j602-user folder located?

You have one or more applications (scripts?) that are located on a shared drive 
(X:). A teacher/student runs the application by navigating to the appropriate 
path on the shared drive and clicking on a shortcut that runs the locally 
installed J binary with the application script from the shared drive (or is the 
shortcut installed on each desktop?). The application requires data files from 
the teacher that are often stored on the teacher's USB drive. Can the 
application prompt the teacher to provide the path to the data files?

Do the users interact with J itself (writing/saving scripts), or do they just 
run the applications that you provide them with, or is the usage scenario 
something in-between?

Do other users need to be able to transport scripts between work and home?

Ric

> From: Henry Rich
> 
> All these good ideas... thanks, I'm making notes.
> 
> Devon, I do modify USERFOLDER_j_ at startup, and that is good enough
> for
> me as a kludge.  The problem was that Edit|Configure reverts to the
> original version.
> 
> Now that I think about it, I guess I could save the config after I
> change it.
> 
> Henry
> 
> Devon McCormick wrote:
> > Henry -
> >
> > This sounds like a different but similar problem I have when I run my
> > backups: I want to name my backup directory differently according to
> the
> > machine on which I'm running.
> >
> > I use my own "whoami", which simply invokes the OS version of this
> command
> > and parses the result like this:
> >
> > whoami=: 3 : 0
> >    sess=. spawn 'net config workstation'
> >    sess=. dsp&.><;._1 LF,sess-.CR                 NB. Vec of lines
> >    sess=. ><;._1&.> ' ',&.>,sess                  NB. Mat of words
> >    strs=. 'COMPUTER';<'USER'                      NB. Strings to key
> on
> >    wh=. (<toupper&.>0{"1 sess)e.&.> <&.>strs      NB. Which lines
> start with
> > strings
> >    wh=. ;b2i&.>(<(toupper&.>1{"1 sess)e. <'NAME')*.&.>wh
> >    wh{2{"1 sess
> > NB.EG 'machine userid'=. whoami ''
> > )
> >    whoami ''
> > +--------------+---------------+
> > |\\NY0193FF51XX|devon_mccormick|
> > +--------------+---------------+
> >
> > I can then use the machine name to customize the target name.
> >
> > Also, along the lines of Dan's suggestion, is there some reason why
> you
> > can't dynamically update the contents of USERFOLDERS_j_ with the
> altered
> > drive letter?  This would allow you to use something like "~MyDir"
> and alter
> > its definition per installation.
> >
> > Regards,
> >
> > Devon
> > ---------------------------------------------------------------------
> -
> > For information about J forums see
> http://www.jsoftware.com/forums.htm
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to