So I have a variable "Var" I want to echo its content into a text file, now this doesn't work
set Var=1
echo %Var%>text.txt
if you add space like this, it'll work :
set Var=1
echo %Var% >text.txt
How can I echo just "1" without a space after ?