PDA

View Full Version : Environment variables not being expand in Path registry entry


Joi Osoy
July 29th 04, 03:52 AM
Hi

System environment variables are expanding fine but not my own variables

In

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\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

Google