I'm trying to do a simple bitwise and in dos. The docs say that & is the bitwise character, but when I write:
if 1 & 1==1 echo hello
I get the following error:
"& was unexpected at this time."
Any ideas how to check a mask on a variable in dos? (if $myvar$ & 1 == 1)