0A Basic Calculator In Batch

Posted by Harwinder Kumar at 6/13/2011 Posted in: ,

Basic calculator written in batch. Copy the given text & paste it on Notepad, then save it as calc.bat

@echo off
title Batch Calculator
echo -------------------------http://www.basicsofhacking.com-------------------------
echo Enter the values with operands (E.g. 1+1):
set /p input=
set /a result=%input%
echo Result is: %result%
echo Wanna continue? Press Y for yes Or N for No
set /p "choice=>"
if %choice%==Y goto 1
if %choice%==N goto end
echo Invalid choice
goto 2

You can also download the text fie from here.
Hope You Liked It. Receive Latest Posts Directly To Your Email
Get Free Updates:
Click On The Confirmation Link Sent To Your Inbox Or Spam

0 comments so far:

We love to hear from you! Leave us a comment:

© 2014 Learn The Basics Of Ethical Hacking About | Site Map | Privacy Policy | Contact