Thursday, March 5, 2009


Calculations On Command Prompt

The command processor CMD.EXE comes with a mini-calculator that can perform simple arithmetic on 32-bit signed integers:

C:\>set /a 2+2
4
C:\>set /a 2*(9/2)
8
C:\>set /a (2*9)/2
9
C:\>set /a "31>>2"
7

Note that we had to quote the shift operator since it would otherwise be misinterpreted as a "redirect stdout and append" operator.

For more information, type set /? at the command prompt.



Bookmark this post:
StumpleUpon Ma.gnolia DiggIt! Del.icio.us Blinklist Yahoo Furl Technorati Simpy Spurl Reddit Google


........................................................................................................................................
If you liked the above post, then please subscribe to this blog :

Enter your email address:


0 comments:

Post a Comment

 

Advertise

Friends list

  • CA's easy-to-use security suite lacks sufficient protection to stop many of today's threats. Don't rely on it.A cursory look at CA Internet Security 2008 m...

Term of Use:

Disclaimer : The Contents Of this Site is Only for Knowledge Purpose, Do not use this in a wrong way.

Hacker's Alley Copyright © 2009 This template is Designed by Ipietoon. Sponsored by Hacker's Alley