I do that: I have

'Monitor';'~zip/quizmon';0

but, in the end, how does ~zip get defined?  It changes from machine to 
machine.  And sometimes there is more than one USB drive installed in a 
machine...

Bill may be right that this really isn't a J problem but a Windows 
problem; but we might make it easier for the user to work around it.  My 
original point was that kludge code run at startup to define the 'zip' 
folder above is incompatible with Edit|Configure|Folders, which wipes it 
out.  A hook to set folder names might be enough.

Henry Rich

Oleg Kobchenko wrote:
> I do not understand why you insist on using 
> an absolute path:
> 
>    'Source';'y:\jal\trunk';0
> 
> instead of a relative path:
> 
>    'Source';'~user/jal/trunk';0
> 
> 
> 
> 
>> From: bill lam <[email protected]>
>>
>> It is impossible in J602.
>>
>> A typical config.ijs contains folder such as
>>
>> USERFOLDERS=: 0 : 0
>> 'Projects';'~user\projects';0
>> 'User';'~user';0
>> 'System';'~system';0
>> 'Addons';'~addons';0
>> 'Classes';'~system\classes';0
>> 'Examples';'~system\examples';0
>> 'Extras';'~system\extras';0
>> 'Help';'~system\extras\help';0
>> 'Main';'~system\main';0
>> 'Packages';'~system\packages';0
>> 'Phrases';'~system\examples\phrases';0
>> 'jproject';'j:\jproject\trunk';0
>> 'Source';'y:\jal\trunk';0
>> )
>>
>> You can see user defined projects always be in the form of absolute
>> path with a drive letter in windows.  What Henry and I refer to
>> this problem but not files that relative to system/user folders.
>>
>>
>> On Sun, 15 Nov 2009, Oleg Kobchenko wrote:
>>> This is getting too overcomplicated. I suggest
>>> simplifying your environment rather than jumping
>>> through artificially constructed hoops.
>>>
>>> J has the ability to work with relative folders.
>>> Folders relative to where it is started or relative
>>> to a constant configuration.
>>>
>>> You could run J from a USB drive, but it is better to
>>> use USB drive only as a transfer/back up media, and
>>> copy the files to a desktop. Even if these are different
>>> desktops: Mac, Linux, Windows--you should be able to
>>> do your stuff without absolute paths, let alone drive
>>> letters.
>>>
>>> That's how addons work. It would have been a nightmare
>>> to handle absolute paths or drive letters. Instead of
>>> USB drives, the SVN is used for addons and it works nicely
>>> between platforms.
>>>
>>>
>>> [---=| TOFU protection by t-prot: 103 lines snipped |=---]
>> -- 
>> regards,
>> ====================================================
>> GPG key 1024D/4434BAB3 2008-08-24
>> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
>> ----------------------------------------------------------------------
>> 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