I have the following script:
FOR /F "tokens=1-4" %%A IN ("REG QUERY HKCU\Environment\") DO (
ECHO %%A
)
However if we change ECHO %%A to:
ECHO %A%
The output is the same.
Normally in batch scripts I echo my variables with %A%, what is the difference and why do people sometimes use %%A as appose to %A%?