-=> Quoting Bat Lang to Scott Jones <=-
BL> BTW, I already have in my CFSys file: "SET HOME=D:\NcFTP\".
BL> Is that similar to the PATH in that it can take multiple entries,
BL> delimited by ';'?
SJ> No, it only takes one entry.
BL> That seems short sighted of OS/2. I have seen several pgms that asked
BL> for that entry for THEIR pgm. Does that mean multiple entries of
BL> SET HOME=. ?? Thanks, as always for your good counsel.
It's short-sighted of the *programmer*. SET merely stores a string in a
place programs can easily acess it. In this case the program would ask
the OS for the value stored under HOME.
Alas, "HOME" is not something like "Path". It has no meaning to the OS.
The *program* that wants it set is probably using it to store the
location of its "home" directory. The *program* doesn't expect it to be
shared.
But you can set up BAT or CMD files to run the programs. And use this
sort of setup:
SET SAVE=%HOME
SET HOME=xxxxxx
{stuff to actually start program goes here}
SET HOME=%SAVE
This saves the old value, changes it to what the program expects, and
after you are done, changes it back to the original value.
Since each window or task has it's own "environment" and inherits
settings from previous ones, this lets them each start out the same,
but change for the specific program, without affecting other tasks.
--- Blue Wave/DOS v2.30
270/101
* Origin: Shadowshack (1:105/51)
|