Boost logo

Boost-Build :

From: Brian Braatz (brianb_at_[hidden])
Date: 2005-06-01 11:18:13

> -----Original Message-----
> From: jamboost_at_[hidden] [mailto:jamboost_at_[hidden]] On
> Of Eric Niebler
> Sent: Tuesday, May 31, 2005 9:06 PM
> To: jamboost_at_[hidden]; boost_at_[hidden]
> Subject: [jamboost] Re: Customer Friendlier Boost Installation
> David Abrahams wrote:
> >
> >>Just out of curiosity: why weren't HOMEDRIVE and HOMEPATH set in
> >>environment? Aren't they set up for you by Windows?
> >
> >
> > Still curious, though.
> >
> Not all the time, and Windows never ceases to amaze and frustrate me.
> turns out that if you lauch a cmd.exe shell as another user, then you
> don't get these environment variables defined for some reason. Try it
> and see:
> Start -> All Programs -> Accessories
> Now, hold down Shift while right-clicking on "Command Prompt" and
> "Run As...". Give the credentials of a different user to have the
> cmd.exe process lauch as that user. Now observe that the shell has no
> HOMEDRIVE and HOMEPATH environment variables!!!
> Sigh.
> --
> Eric Niebler
> Boost Consulting
[Brian Braatz Writes:]
Side Note:

Eric, I ran into this while writing security code for Win32. Basically,
you may have a "user which has rights to do something" on a given box,
but if the user does NOT have a profile then you see the behavior you

In my case, the problem was solved by manually logging into the machine
with the other user (to make windows create a profile for you), and then
doing the "runas". There is also an API for this (sorry not at the tip
of my fingers).

Basically, the profile is what engages all those files in your
"\Documents and Settings\" dir



Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at