Calculations On Command PromptThe command processor CMD.EXE comes with a mini-calculator that can perform simple arithmetic on 32-bit signed integers:C:\>set /a 2+24C:\>set /a 2*(9/2)8C:\>set /a (2*9)/29C:\>set /a "31>>2"7Note that we had to quote the shift operator since it would otherwise be Missinterpreted as a "redirect stdout and append" operator.For more information, type set /? at the
No comments:
Post a Comment