theGeek,
See "ProfileImagePath" part in this article section "To move only
user-specific data".
http://support.microsoft.com/kb/314843/
Read the "WARNING" statement as well, and take a full system backup using
ERUNT.
From "Registry Hives" MSDN article:
"The supporting file for the user profile hive for a particular user is
located in HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\
CurrentVersion\ProfileList\SID\ProfileImagePath, and is named Ntuser.dat.
The value of ProfileImagePath is a binary representation of the directory
name of the user's profile, which includes the user's name. Use the Registry
Editor to display this binary value as a string."
Alternately, you may create a new user account, and then use the "Copy To"
option to create a duplicate account in your prefered name.
--
Ramesh, Windows XP MVP
http://windowsxp.mvps.org
"theGeek" <(E-Mail Removed)> wrote in message
news:971925D7-1AB2-43D2-8B2A-(E-Mail Removed)...
> In Control Panel -> User Accounts, XP gives users the option to change
> their
> username. After changing names, the user can then use this name for
> logon,
> as well as use their original name as specified in the Documents and
> Settings
> folder (both usernames direct to the same user account settings).
>
> Now for the details of my question. There is an environment variable
> %username% that is set on the original name of the user (the one in Docs
> and
> Settings). Is there a variable that is set to the new name of the user
> (changed in User Accounts) that I can access? If not, how and where can I
> find this username specifically and set it as a variable? Note that the
> value
> of this variable is different for each user, just as the variable
> %username%
> is.
>
> Any Suggestions?