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

Re: Portable XY



Reply to note from Fred Weiner  Sun, 24 Jun 2012
14:42:50 -0700

Fred:

> Question: is there a way to make that, and other sections in
> the registry truly portable? Should I assume that ≪PV01≫ is
> transitory?

Yes, the PV01 in STARTUP.INT is transitory, as it is in any program.
And, yes, of course you can make XYWWWEB.REG portable.

If you want Editor's path, or any other value, to persist in memory
after a program terminates, you've got to assign it to a Save/Get in
the "permanent" range, 100-1999, or to an "ordinary" S/G (A-Z,0-9).
(Some of the numerical ranges are reserved for various stated uses
(the Jumbo U2 has laid claim to 600-799), but, in general, S/Gs in
the range 100-999 are available to users. For my personal purposes,
I use S/Gs in range 300-399; in particular, I use 302 to store the
directory that contains EDITOR.EXE. To make this assignment on
startup, include the following line in STARTUP.INT (substitute
permanent S/G of your choice):

+"\DOCS"
or
(2)
DOCS=+"\DOCS"≫

NOT:
(3)
DOCS=\DOCS
or
(4)
DOCS=+"\DOCS"

Read HELP REGEDIT to see why (1) and (2) above work, while (3) and
(4) do not. Basically, the rule for the Registry assignments is that
you can use plain text, or "bare" VAs, or VAs concatenated with
quoted text (as in (1) above); anything other expression requiring
evaluation must be saved to S/G 99.

Hope this helps.

--
Carl Distefano
cld@xxxxxxxx