1) Extra spaces are ignored in both the name and the value. This one does not surprise me much.
Normally, extra spaces in a SET statement are incorporated into the name and/or value.
Code: Select all
C:\test>set var1 = 33
C:\test>set var1
var1 = 33
But extra spaces in SET /A are ignored
Code: Select all
C:\test>set /a var1 = 33
33
C:\test>set var1
var1=33
2) A single computation can perform multiple assignments if parentheses are used. This one is a very pleasant surprise
Code: Select all
C:\test>set /a var1=33
33
C:\test>set var2=
C:\test>set var
var1=33
C:\test>set /a var1+=(var2=10)
43
C:\test>set var
var1=43
var2=10
Dave Benham