Hmm - but why is setx not working? The command would be :- Setx AMPDATA "%USERPROFILE\local settings\application data\amp" Which should create a key under HKCU\Environment Ampdata REG_SZ c:\documents and settings\user\local settings\data\amp" Mind, as Joe mentions that'll explicity define the key You may want to add "Ampdata" as a REG_EXPAND_SZ value under the default users HKCU\Environment instead. From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Joe Shonk Sent: 04 August 2010 14:37 To: thin@xxxxxxxxxxxxx Subject: [THIN] Re: New user variable for all users Have you tried setting this variable in the registry using the reg_ex type? Joe From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Angela Smith Sent: Wednesday, August 04, 2010 6:21 AM To: thin@xxxxxxxxxxxxx Subject: [THIN] New user variable for all users Hi Im trying to set a new variable called "Ampdata" for all users for a new application Im about to install. Userdata needs to point to %userprofile%\local settings\application data\amp. I tried to use setx in usrlogin.cmd but it didn't work. Since Im relying on %userprofile%, the variable must run after the system variables are set. Can anyone suggest a good way to set this variable so it runs for all users on login? Thanks Ang