How to Make a Batch File Calculator

How to make a batch file Calculator.

Copy this code into a blank note pad:

@ECHO OFF
cls
color 0a
title CALCULATOR
ECHO Calculator Version 1.2
ECHO ———————————————–
ECHO * = MULTIPLY
ECHO + = ADD
ECHO – = SUBTRACT
ECHO / = DIVIDE
:loop
echo ———————————————–
SET /p UDefine=
SET /a UDefine=%UDefine%
ECHO =
ECHO %UDefine%
ECHO.
goto loop

Then save the notepad as Calculator.bat

Thats all, the only problem is it can’t do decimals…

————————————–IGNORE———————————————————–

<%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%><%FILLER%>

comments powered by Disqus
Loading