Why aren’t variable names surrounded by exclamation marks outputting values even after enabling delayed expansion?
I wrote this code: setlocal EnableDelayedExpansion set “var1=level” set “var2=stats” echo !var1%var2%! and when I execute it, it outputs this: !var1stats! Even with Delayed Expansion enabled, exclamation marks won’t work in substitution of parenthesis. I want it to output this: levelstats I don’t understand my error.Details