Originally posted by pengfei at 2006-10-17 23:11:
Interesting, the first post by moderator qwe1234567 forgot the difference between "%" and "%%" in cmd and batch processing when taking the remainder.
The input line is too long, this may be because the system has insufficient memory allocated for environment variables..
Can this be blamed on me? It's also because Microsoft didn't explain the usage of SET/A clearly. Just SET /A, I believe everyone doesn't know how to use all the evaluated numeric expressions. How many of the following do you know?
() - Grouping
* / % - Arithmetic operators
+ - - Arithmetic operators
<< >> - Logical shift
- Bitwise "AND"
^ - Bitwise "XOR"
| - Bitwise "OR"
= *= /= %= += -= - Assignment
&= ^= |= <<= >>=
, - Expression separator
I think except for * / %+ - = *= /= %= += -= - which can be used, the others are not used. Hehe!
