Sunday 27 March 2011

HOW TO MAKE A CALCULATOR USING BATCH FILE

To create a calculator using batch file open notepad and copy the code below
----------------------------code------------------------------
echo off
cls
echo.
echo This is multiplication calculation
set/p "user=FirstNo=>"
set/p "pass=SecondNo=>"
set /a a=%user%*%pass%
echo so the answers is = %a%
pause >nul
---------------------------end code---------------------------

 paste the copied code in your notepad and save as "calculator.bat" or any other name with bat extension
you can change * with +,- and /  to perform various operations

Share your tricks with me to post in my blog with your name or url
Subscribe posts via email to get updates via email

Subscribe to this Blog via Email:

Click here to Subscribe to FREE email updates from "Tricks and Tips", so that you do not miss out anything that can be valuable to you and your blog!!

3 comments:

Post a Comment