On 10 Jul 2004 at 14:24, Dean Arnold wrote:
> Thanks. One minor adjustment for Windows users: $USER is %USERNAME%
> (at least on XP, have to check 2K), and it appears PAR replaces
> spaces in the username with underscores (but not in the rest of the
> constructed path).
I should have been more precise. $USER is (in this order):
Win32 API GetUserName() (which should be the login name)
or
$ENV{USER}
or
$ENV{USERNAME} (which is normally also the login name)
or
SYSTEM (presumed not logged in - perhaps Win98 or a system service)
and then all non-alphanumerics are changed to underscore. Under a default C compile,
this means [^a-zA-Z0-9], so non-English letters become underscores also. This is to
ensure a valid path name. The path preceeding "par-$USER" is not constructed, it pre-
exists, so it has or doesn't have spaces as you wish.
Alan Stewart