New
#1
Limits to environment variable nesting?
So, is there a limit to how deeply environment variables can be nested in Windows? I do a lot of development work and I'm trying to set up my development environment vars, and a lot of them nest off each other, ie.
FOO=C:\path\to\foo
FOO_BAR=%FOO%\bar
BAR_ETC=%BAR%\etc
I'm having some trouble getting Windows to expand all of them. Eventually when I look at 'set' I get an output like:
FOO=C:\path\to\foo
FOO_BAR=C:\path\to\foo\bar
BAR_ETC=%BAR%\etc
Is there some limit to how deeply it'll expand envvars? Is there a way to coax it into looking more deeply? A registry entry perhaps?
Thanks all!