I set a variable in cmd with the set
command, and tried to echo
it.
Here is an example:
C:\Users\Logan>set var = text
C:\Users\Logan>set var
var = text
C:\Users\Logan>echo %var%
%var%
C:\Users\Logan>
Is there a way to force the cmd to echo
the variable and not the raw text?
You need to bring closer your text from the equal symbol :
set var=text
echo %var%
text
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With