On 9/29/06, Paul Newton <[EMAIL PROTECTED]> wrote:
How can I find the full path (including drive) for the location of the
"Documents and Settings" folder (Win2K, WinXP) ?
I'm sure there's a WinAPI call for it, but I'll bet this will work:
? SUBSTR(HOME(8), 1, AT("Settings\",HOME(8))+8)
Am I right in thinking that
(i) this folder should always contain the folders "All Users" and
"Default User"
I'm pretty sure it's possible to set this on a user-by-user basis, and
some may be mapped to networks or different drives. So, my home might
be H:\users\troche and yours might be N:\users\pnewton
(ii) this folder must always contain at least one additional user folder
(e.g. "Paul Newton")
Sorry, don't think so.
Can I safely assume that ALL folders under "Documents and Settings" will
be one of "All Users", "Default User", "User1" etc OR is it possible
that in some circumstances somebody might have added a folder (Some
folder name that is not a user name or "All Users" or "Default User")
just to s***w me up !
This is Windows. It's rarely safe to assume.
If that is the case I will need to find a way to get a list of users who
should have folder entries under "Documents and Settings".
What is it that you are trying to accomplish?
--
Ted Roche
Ted Roche & Associates, LLC
http://www.tedroche.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.