I tring to excute a simple batch file scripts :
echo %1
set var = %1
echo %var%
When I am running it in XP, it is giving me expected output, but When I am running it in Vista or windows 7, I am getting "Echo is On" when trying to print (echo) value.
Below is the output of program :
G:\2012>abc.bat 1
G:\2012>echo 1
1
G:\2012>set var = 1
G:\2012>echo
ECHO is on.
G:\2012>