Looks like the Vista install I have from Dell has C:\Users\Public
GetEnv("Public") should give this to you.
GetEnv("AllUsersProfiles") returns "C:\ProgramData"

My W2K box doesn't have a "Public" and "AllUsersProfiles" returns
C:\Documents and Settings\All Users

Tracy


> -----Original Message-----
> From: Whil Hentzen (Pro*)
> Sent: Thursday, February 15, 2007 1:46 PM
>
> OK, gang, I've inherited a vertical market app, sort of,
> that's installed all over the place. The system uses a
> licensing scheme that writes a file to one of several
> locations and then checks against that file to ensure that
> only an allotted number of users are logged on. So far, so
> good. It's been working fine for years.
>
> And now comes Vista, which won't let the app write that file
> to any of its configured locations (Windows system dir, root
> of C, etc.) It looks like the app will have to write to My
> Documents\User
>
> The issue is... when Al logs on to the app, the app can't write to
>
>    C:\My Documents\Al
>
> because when Barbara logs on, the app would write to
>
>    C:\My Documents\Barbara
>
> So I'm thinking the app needs to write to a folder like
>
>    C:\My Documents\SpecialUserForThisApp
>
> when either Al or Barbara or Carl logs on. I'm thinking this
> is sort of like when Al and SpecialUserForThisApp both belong
> to the same group. But past that, I'm just swagging it.
>
> And of course, I don't have Vista here. (Hell, I just put XP
> on a box for the first time two weeks ago...)
>
> Any ideas?
>
> Whil




_______________________________________________
Post Messages to: ProFox@leafe.com
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.

Reply via email to