What I’m trying to do is to put a simple echo message on the console saying:
variable named %%x has value of 'this is text inside the variable
so command I must do must escape the percentages that belong to variable name so it doesn’t evaluate. Normally the escape character for % is another %. So this works:
echo %%variable%% has value: %variable%
But this doesn’t, seems that double percent variables used in for loops always evaluate:
echo %%%%x has value: %%x
This is a silly hack that seems to work:
Or you can do
set dblpercent=%%%%andecho !dblpercent!a…