Code: Select all
set A=B
echo %%A%%
echo|echo %%A%%
echo|echo %%%%A%%%%
outputs:
Code: Select all
%A%
B
%B%
(echo| could be any command that doesn't make cmd.exe abort or output to stderr, like cd;.|, type nul|, etc.)
The third output line confuses me; why doesn't it output %A%?
Queue