Here's an interesting
blog entry I read this week for using CMD.EXE to check arithmetic
expressions. Without stealing any thunder, you can do this:
set a/ 1 + 1
...that will of course result in 2 being displayed. Big deal, why not use
calc.exe? Well, because you can use variables with the set command:
set /a i = 1 + 1
set /a j = i + 2
set a i + j
Be sure to read the entire article linked to above