Page 1 of 1
Vista access to users\\public
Posted: Fri Nov 03, 2006 8:10 pm
by bradak
Is there a system variable to access either
users
users\\public
in Windows Vista? Something like $PROGRAMFILES$, etc?
thanks,
Brad
Posted: Sat Nov 04, 2006 3:19 am
by MichaelNesmith
This is returned by Get Folder Location on all platforms (these folders are not new to Vista, but their locations have indeed changed).
Posted: Mon Nov 06, 2006 12:55 pm
by bradak
Get Folder Location gets the folder location for the following predefined system locations:
System->Application Data Directory
System->CD Burning Directory
System->Desktop Directory
System->Fonts Directory
System->Profiles Directory
System->Program Files Directory
System->Recent Files Directory
System->Send To Directory
System->System Directory
System->Templates Directory
System->Windows Directory
I need to get the path to the new system "Users" or "Users\\Public" folders.
If you don't have something for this, is there a way to find the system drive? Then I could do the following:
$SYSTEMDRIVE$\\Users\\Public
Posted: Mon Nov 06, 2006 1:01 pm
by MichaelNesmith
I had already answered this question, and you repeated the answer

Use the System->Profiles directory.
Posted: Mon Nov 06, 2006 2:38 pm
by bradak
System->Profile returns:
"c:\\Users\\<username>" on Vista
I need access to:
"c:\\Users\\Public"
Posted: Mon Nov 06, 2006 6:14 pm
by MichaelNesmith
bradak wrote:I need to get the path to the new system "Users"...
Which you got.
bradak wrote:...is there a way to find the system drive? Then I could do the following:
$SYSTEMDRIVE$\\Users\\Public
You already have something better.
Posted: Mon Nov 06, 2006 6:26 pm
by bradak
I'm new to IA, so maybe I'm missing something, but
you still haven't shown me how to do this.
I have:
"c:\\Users\\<username>\"
How do I get:
"c:\\Users\\Public"
Posted: Mon Nov 06, 2006 6:45 pm
by MichaelNesmith
Extract File Path and Set Variable are the commands to use.
Posted: Mon Nov 06, 2006 7:16 pm
by bradak
Thanks that did the trick.