Environment variables not being expand in Path registry entry

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top