TheChaseMan's Frenetic SoapBox

Always looking for better ways to do things...

Another use for CMD.EXE

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


Digg!

posted on Saturday, February 19, 2005 8:57 AM

Feedback

No comments posted yet.