1.

Solve : Math operations in Bat files?

Answer»

Is there a way to do math operations, with variables, in bat filesYes, using the /a switch on the set statement. This is OS dependent.

Hope this helps. "Doing math in a batch file is a WASTE of time."

NOT my words - see here...http://www.ericphelps.com/batch/samples/addition.txtUnless you're WORKING on a project that requires you todo this in a batch file you may WANT to consider doing math operations in a PROGRAMMING language like C, PERL, etc.



Discussion

No Comment Found