[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: Portable XY



Quoting Fred Weiner :
Why not use ? Isn't that the editor's directory? In other words,
what's the advantage of , the current D:\PATH?
 includes both the path and the EXEcutable's filename; if you
use  you must parse out the filename. Easy way to do this
parsing is:
>JM 2.GetPathQ2 ;*;
(which puts the path only into S/G 50); we use it all the time in U2. You can do that in STARTUP.INT, but only *after* U2 has been loaded. The advantage of is that it's elegantly simple -- no parsing required. Just be sure that, at the time you invoke , Editor's dir is the current dir -- and it *will* be the current dir, unless a ChDir command has been executed before is used. If you hold off on any ChDir commands until the very end of STARTUP.INT, you should be safe.

--
Carl Distefano
cld@xxxxxxxx