An arcane error shows up every time build.bat is run:
"\Microsoft was unexpected at this time."
 
Turned out it is because 64-bit windows installs 32-bit applications (vs 2005 being one of them) to "program files (x86)..." instead of "program files". This (well, I do not what to say..) cause all "If condition (  cmds ) else ( cmds) " statements to throw errors similar to the one shown above if condition contains parentheses. One solution is to put (cmds) spanned multiple lines to one line and separate cmds by &&. Another one would be to use the gotos. Either solution will make build.bat totally unreadable. The best I can come up with is something like this:
 
if conditionContainsParen set boolean=true else set boolean=false
if "%boolean%"== "true" ( cmds ) else (cmds)
 
Of course, a better name should be chosen.
 
Sean