I'm unable to set the value of variable
foo.The script is as follows:
@echo off set foo = %1 echo %foo%
I'm getting this as an output:
ECHO is off
Can anyone tell me what am I doing wrong?
Remove the spaces surrounding your equals sign:
EDIT (to elaborate):