loading
Welcome to my batch calculator.  I made this on my own and did not copy this calculator from other sites.  This Instructable will show you how to make a Batch Calculator and you can also download a .exe file for this.

Step 1: The Batch Code

Copy this code into notepad or notepad++ and save as Calculator.bat.  The .bat is a must.  Then save as "all files" to your desktop.








@ echo off
title Arthur's Batch Calculator
color  1D
echo -------------------------
echo Welcome to my Calculator
echo Made by Arthur
echo -------------------------
color 1A
echo =====        =====
echo =====        =====
echo =====        =====
echo.
echo.
echo ==              ==
echo ==              ==
echo  ==            ==
echo  ================
echo  ================
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
pause
cls
:top
color B4
echo ------------------------
echo List of Calculations
echo ------------------------
echo.
echo +=+
echo -=-
echo /=/
echo *=x
echo.
echo.
echo.
echo Enter Calculation
echo.
echo.
echo.
set /p sum=
set /a ans=%sum%
echo.
echo = %ans%
echo ---------------------------------------------------
pause
cls
echo.
echo.
echo Previous Answer %ans%
echo.
echo.
echo.
echo.
goto :top
pause >nul

Step 2: The Running of This Calculator

When you use this calculator use the # pad it is much easier.  This calculator dose not divide decimals sorry.  The * = multiplication.  The / = division.  The - = subtraction and the + = addition. To get the answer press enter

Step 3: The .exe File

Download the .exe file here.
<p>I did not make a batch calculator but I did make a Visual Basic Script Calculator.</p><p>Code:</p><p>dim num1<br>dim num2<br>dim equ<br><br>num1 = inputbox(&quot;Enter First number&quot;)<br>equ = inputbox(&quot;enter your variable ie. (/ * - +)&quot;)<br>num2 = inputbox(&quot;enter second #&quot;)<br><br>if equ = &quot;/&quot; then msgbox(num1 / num2)<br>if equ = &quot;*&quot; then msgbox(num1 * num2)<br>if equ = &quot;-&quot; then msgbox(num1 - num2)<br>if equ = &quot;+&quot; then msgbox(num1 -- num2)</p>
this one is mine enjoy! :) <br>@echo off <br>title vCalculator Omega <br>goto typeset <br>:errblockfinal <br>cls <br>goto val <br>:errblockval <br>color 0C <br>echo. <br>echo Please enter a number! <br>pause <br>set a= <br>set b= <br>if %valtilt%==1 goto display <br>if %valtilt%==0 cls&amp;goto secondint <br>:errblock <br>color 0C <br>echo Incorrect math type! <br>pause <br>:typeset <br>cls <br>color 0B <br>echo ____________________ <br>echo +,-,/, or x ? <br>echo __________________ <br>echo. <br>echo (Type one below and press enter) <br>set functiontype= <br>set /p functiontype=: <br>if not defined functiontype goto :errblock <br>if &quot;%functiontype%&quot;==&quot;exit&quot; exit <br>if &quot;%functiontype%&quot;==&quot;+&quot; set typedisplay=Addition&amp;goto begin <br>if &quot;%functiontype%&quot;==&quot;-&quot; set typedisplay=Subtraction&amp;goto begin <br>if &quot;%functiontype%&quot;==&quot;/&quot; set typedisplay=Division&amp;goto begin <br>if not &quot;%functiontype%&quot;==&quot;x&quot; goto errblock <br>if &quot;%functiontype%&quot;==&quot;x&quot; set typedisplay=Multiplication&amp;set functiontype=* <br>:begin <br>cls <br>if &quot;%functiontype%&quot;==&quot;x&quot; set functiontype=* <br>color 0A <br>set a= <br>set b= <br>set c=Only enter 9 digits per prompt, if missing operand above you did not enter anything. Only use whole numbers! <br>cls <br>:display <br>cls <br>echo _________________ <br>echo %typedisplay% <br>echo _________________ <br>echo. <br>:firstint <br>color 0A <br>echo ____________________ <br>echo Enter first integer. <br>echo _____________________ <br>echo. <br>set /p a=Integer: <br>if not defined a set valtilt=1&amp;goto errblockval <br>if not %a% gtr 0 set valtilt=1&amp;goto errblockval <br>:secondint <br>color 0A <br>echo _____________________ <br>echo Enter second integer. <br>echo ______________________ <br>echo. <br>set /p b=Integer: <br>if not defined b set valtilt=0&amp;goto errblockval <br>if not %b% gtr 0 set valtilt=0&amp;goto errblockval <br>cls <br>set /a c=%a%%functiontype%%b% <br>if %functiontype%==* set functiontype=x <br>:val <br>echo _____________________ <br>echo %a%%functiontype%%b%=%c% <br>echo ____________________ <br>echo. <br>color 0E <br>echo (y/n) or (quit) <br>set /p functiontilt=Would you like a new math type? <br>if not defined functiontilt goto errblockfinal <br>if /i &quot;%functiontilt%&quot;==&quot;y&quot; goto typeset <br>if /i &quot;%functiontilt%&quot;==&quot;n&quot; goto begin <br>if not &quot;%functiontilt%&quot;==&quot;quit&quot; goto errblockfinal <br>if /i &quot;%functiontilt%&quot;==&quot;quit&quot; goto :EOF
Or this one: <br> <br>@echo off <br> <br>:a <br>echo Enter Equation <br>echo. <br>set /p MATH=Equation: <br>set /a RESULT=%MATH% <br>echo %RESULT% <br>pause <br>cls <br>goto a

About This Instructable

3,214views

3favorites

License:

More by arthur9613:Arthur's Batch Calculator 
Add instructable to: