Answer the question
In order to leave comments, you need to log in
Why isn't the %ProgramFiles% variable expanded inside another REG_EXPAND_SZ variable?
There is such initial data:
In the registry, the JAVA_HOME variable is declared as having the REG_EXPAND_SZ type , the value is %ProgramFiles%\Java\jdk1.7.0_11 .
> echo %ProgramFiles%
C:\Program Files
> echo %JAVA_HOME%
%ProgramFiles%\Java\jdk1.7.0_11
> echo %SystemRoot%
C:\Windows
> echo %JAVA_HOME%
%ProgramFiles%\Java\jdk1.7.0_11\C:\Windows
MINGW32_NT-6.0 VISTA-NOTEBOOK 1.0.12(0.46/3/2) 2011-07-20 17:52 i686 unknown
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question