Environment variables not being expand in Path registry entry

  • Thread starter Thread starter Joi Osoy
  • Start date Start date
J

Joi Osoy

Hi

System environment variables are expanding fine but not my own variables

In

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment

I have

Path REG_EXPAND_SZ %FOO%;C:\tmp;%SystemRoot%\system32;%SystemRoot%
FOO REG_EXPAND_SZ c:\bar

If I do
echo %PATH%
in command I get
%FOO%;C:\tmp;c:\windows\system32;c:\windows\

Why is FOO not been expanded? I have been googling around and cannot find solution

Any insight greatly appreciated
 
Back
Top