ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
@echo off
color 0A
title BATCH CALCULATOR
:loop
cls
echo by Nader
echo _
echo email: mak_nader@yahoo.com
echo.
echo Batch Calculator
echo -----------------------------------------------
echo * = MULTIPLY
echo + = ADD
echo - = SUBTRACT
echo 2 = SQUARED
echo / = DIVIDE
echo After an equation, type CLEAR to clear the screen of your equations, type
KEEP to leave them there, or type EXIT to leave.
:noclear
set /p UDefine=
set /a UDefine=%UDefine%
echo.
echo =
echo.
echo %UDefine%
echo KEEP, CLEAR, OR EXIT?
set /p clearexitkeep=
if %clearexitkeep%==CLEAR goto loop
if %clearexitkeep%==KEEP echo. && goto noclear
if %clearexitkeep%==EXIT (exit)
:misspell
echo.
echo -----------------------------------------------
echo You misspelled your command. Please try again (make sure you are typing in
all caps LIKE THIS).
echo Commands:
echo CLEAR Clear all previous equations and continue calculating.
echo KEEP Keep all previous equations and continue calculating.
echo EXIT Leave your calculating session
echo Enter in a command now.
set /p clearexitkeep=
if %clearexitkeep%==CLEAR goto loop
if %clearexitkeep%==EXIT (exit)
if %clearexitkeep%==KEEP goto noclear
goto misspell


  File Name ? calculator.bat

More Related Content

What's hot (19)

The Ring programming language version 1.3 book - Part 36 of 88
The Ring programming language version 1.3 book - Part 36 of 88The Ring programming language version 1.3 book - Part 36 of 88
The Ring programming language version 1.3 book - Part 36 of 88
Mahmoud Samir Fayed
?
Beginning web programming with PHP [PHP 101-02]
Beginning web programming with PHP [PHP 101-02]Beginning web programming with PHP [PHP 101-02]
Beginning web programming with PHP [PHP 101-02]
Mozammel Haque
?
Vb
VbVb
Vb
Nguy?n Y¨ºn Giang
?
Ejercicios En Gambas
Ejercicios En GambasEjercicios En Gambas
Ejercicios En Gambas
mafermen7
?
Web on TV - the joy and (mostly) pain of TV development / jQuery Europe / Vie...
Web on TV - the joy and (mostly) pain of TV development / jQuery Europe / Vie...Web on TV - the joy and (mostly) pain of TV development / jQuery Europe / Vie...
Web on TV - the joy and (mostly) pain of TV development / jQuery Europe / Vie...
Patrick Lauke
?
Codigo Ceclav
Codigo CeclavCodigo Ceclav
Codigo Ceclav
cinthiaerendida
?
Robot In OpenGL Using Line Function
Robot In OpenGL Using Line Function Robot In OpenGL Using Line Function
Robot In OpenGL Using Line Function
Jannat Jamshed
?
Ruby closures, how are they possible?
Ruby closures, how are they possible?Ruby closures, how are they possible?
Ruby closures, how are they possible?
Carlos Alonso P¨¦rez
?
Tickets air line reservation system ( data structures projects in c++ )
Tickets air line reservation system ( data structures projects in c++ ) Tickets air line reservation system ( data structures projects in c++ )
Tickets air line reservation system ( data structures projects in c++ )
Hesham Ramadan Ali
?
Week1m
Week1mWeek1m
Week1m
tauqeer729
?
Yahoo! JAPAN¤ÈKotlin
Yahoo! JAPAN¤ÈKotlinYahoo! JAPAN¤ÈKotlin
Yahoo! JAPAN¤ÈKotlin
Shoichi Matsuda
?
Introduction to Programming @ NTHUEEECamp 2015
Introduction to Programming @ NTHUEEECamp 2015Introduction to Programming @ NTHUEEECamp 2015
Introduction to Programming @ NTHUEEECamp 2015
´¾ÓÓ —î
?
1.4 first class-functions
1.4 first class-functions1.4 first class-functions
1.4 first class-functions
futurespective
?
The Ring programming language version 1.5.4 book - Part 57 of 185
The Ring programming language version 1.5.4 book - Part 57 of 185The Ring programming language version 1.5.4 book - Part 57 of 185
The Ring programming language version 1.5.4 book - Part 57 of 185
Mahmoud Samir Fayed
?
5th Sem SS lab progs
5th Sem SS lab progs5th Sem SS lab progs
5th Sem SS lab progs
Nagarjun Pakka Kannadiga
?
Sample php notification
Sample php notificationSample php notification
Sample php notification
kavi taragi
?
Consulta de notas
Consulta de notasConsulta de notas
Consulta de notas
Luis Gonzalez
?
Verificacion de notas
Verificacion de notasVerificacion de notas
Verificacion de notas
Luis Gonzalez
?
tp_bison.pdf
tp_bison.pdftp_bison.pdf
tp_bison.pdf
ABDELHAFIDAMMARI
?
The Ring programming language version 1.3 book - Part 36 of 88
The Ring programming language version 1.3 book - Part 36 of 88The Ring programming language version 1.3 book - Part 36 of 88
The Ring programming language version 1.3 book - Part 36 of 88
Mahmoud Samir Fayed
?
Beginning web programming with PHP [PHP 101-02]
Beginning web programming with PHP [PHP 101-02]Beginning web programming with PHP [PHP 101-02]
Beginning web programming with PHP [PHP 101-02]
Mozammel Haque
?
Ejercicios En Gambas
Ejercicios En GambasEjercicios En Gambas
Ejercicios En Gambas
mafermen7
?
Web on TV - the joy and (mostly) pain of TV development / jQuery Europe / Vie...
Web on TV - the joy and (mostly) pain of TV development / jQuery Europe / Vie...Web on TV - the joy and (mostly) pain of TV development / jQuery Europe / Vie...
Web on TV - the joy and (mostly) pain of TV development / jQuery Europe / Vie...
Patrick Lauke
?
Robot In OpenGL Using Line Function
Robot In OpenGL Using Line Function Robot In OpenGL Using Line Function
Robot In OpenGL Using Line Function
Jannat Jamshed
?
Tickets air line reservation system ( data structures projects in c++ )
Tickets air line reservation system ( data structures projects in c++ ) Tickets air line reservation system ( data structures projects in c++ )
Tickets air line reservation system ( data structures projects in c++ )
Hesham Ramadan Ali
?
Introduction to Programming @ NTHUEEECamp 2015
Introduction to Programming @ NTHUEEECamp 2015Introduction to Programming @ NTHUEEECamp 2015
Introduction to Programming @ NTHUEEECamp 2015
´¾ÓÓ —î
?
1.4 first class-functions
1.4 first class-functions1.4 first class-functions
1.4 first class-functions
futurespective
?
The Ring programming language version 1.5.4 book - Part 57 of 185
The Ring programming language version 1.5.4 book - Part 57 of 185The Ring programming language version 1.5.4 book - Part 57 of 185
The Ring programming language version 1.5.4 book - Part 57 of 185
Mahmoud Samir Fayed
?
Sample php notification
Sample php notificationSample php notification
Sample php notification
kavi taragi
?

Viewers also liked (15)

EcologiaEcologia
Ecologia
gustavodoyouwho
?
Biodiversidad en ColombiaBiodiversidad en Colombia
Biodiversidad en Colombia
burbanodiego
?
Manzil
ManzilManzil
Manzil
Muhemmed Faizan
?
Nigeria economic profile
Nigeria economic profileNigeria economic profile
Nigeria economic profile
Nigeria Alternative Energy Expo
?
Mamun2
Mamun2Mamun2
Mamun2
Shah Mamun Kabir
?
New Eurasia Foundation newsletter for 2012
New Eurasia Foundation newsletter for 2012New Eurasia Foundation newsletter for 2012
New Eurasia Foundation newsletter for 2012
New Eurasia Foundation
?
2013 Cadillac CTS Sport Luxury Philadelphia
2013 Cadillac CTS Sport Luxury Philadelphia2013 Cadillac CTS Sport Luxury Philadelphia
2013 Cadillac CTS Sport Luxury Philadelphia
Fred Beans Cadillac
?
2013 Cadillac CTS-V Coupe Philadelphia
2013 Cadillac CTS-V Coupe Philadelphia2013 Cadillac CTS-V Coupe Philadelphia
2013 Cadillac CTS-V Coupe Philadelphia
Fred Beans Cadillac
?
2013 Cadillac CTS Sport Wagon Standard Philadelphia
2013 Cadillac CTS Sport Wagon Standard Philadelphia2013 Cadillac CTS Sport Wagon Standard Philadelphia
2013 Cadillac CTS Sport Wagon Standard Philadelphia
Fred Beans Cadillac
?
Opdracht online marketing FSM
Opdracht online marketing FSMOpdracht online marketing FSM
Opdracht online marketing FSM
Gewoon Groen
?
Potencia: Activa, Reactiva y AparentePotencia: Activa, Reactiva y Aparente
Potencia: Activa, Reactiva y Aparente
gallardoluis
?
El Sector Terciario en Espa?aEl Sector Terciario en Espa?a
El Sector Terciario en Espa?a
profeshispanica
?
Mobile web apps tips & tricks
Mobile web apps tips & tricksMobile web apps tips & tricks
Mobile web apps tips & tricks
Darius Leskauskas
?
Biodiversidad en ColombiaBiodiversidad en Colombia
Biodiversidad en Colombia
burbanodiego
?
New Eurasia Foundation newsletter for 2012
New Eurasia Foundation newsletter for 2012New Eurasia Foundation newsletter for 2012
New Eurasia Foundation newsletter for 2012
New Eurasia Foundation
?
2013 Cadillac CTS Sport Luxury Philadelphia
2013 Cadillac CTS Sport Luxury Philadelphia2013 Cadillac CTS Sport Luxury Philadelphia
2013 Cadillac CTS Sport Luxury Philadelphia
Fred Beans Cadillac
?
2013 Cadillac CTS-V Coupe Philadelphia
2013 Cadillac CTS-V Coupe Philadelphia2013 Cadillac CTS-V Coupe Philadelphia
2013 Cadillac CTS-V Coupe Philadelphia
Fred Beans Cadillac
?
2013 Cadillac CTS Sport Wagon Standard Philadelphia
2013 Cadillac CTS Sport Wagon Standard Philadelphia2013 Cadillac CTS Sport Wagon Standard Philadelphia
2013 Cadillac CTS Sport Wagon Standard Philadelphia
Fred Beans Cadillac
?
Opdracht online marketing FSM
Opdracht online marketing FSMOpdracht online marketing FSM
Opdracht online marketing FSM
Gewoon Groen
?
Potencia: Activa, Reactiva y AparentePotencia: Activa, Reactiva y Aparente
Potencia: Activa, Reactiva y Aparente
gallardoluis
?
El Sector Terciario en Espa?aEl Sector Terciario en Espa?a
El Sector Terciario en Espa?a
profeshispanica
?

Mamun

  • 1. @echo off color 0A title BATCH CALCULATOR :loop cls echo by Nader echo _ echo email: mak_nader@yahoo.com echo. echo Batch Calculator echo ----------------------------------------------- echo * = MULTIPLY echo + = ADD echo - = SUBTRACT echo 2 = SQUARED echo / = DIVIDE echo After an equation, type CLEAR to clear the screen of your equations, type KEEP to leave them there, or type EXIT to leave. :noclear set /p UDefine= set /a UDefine=%UDefine% echo. echo = echo. echo %UDefine% echo KEEP, CLEAR, OR EXIT? set /p clearexitkeep= if %clearexitkeep%==CLEAR goto loop if %clearexitkeep%==KEEP echo. && goto noclear if %clearexitkeep%==EXIT (exit) :misspell echo. echo ----------------------------------------------- echo You misspelled your command. Please try again (make sure you are typing in all caps LIKE THIS). echo Commands: echo CLEAR Clear all previous equations and continue calculating. echo KEEP Keep all previous equations and continue calculating. echo EXIT Leave your calculating session echo Enter in a command now. set /p clearexitkeep= if %clearexitkeep%==CLEAR goto loop if %clearexitkeep%==EXIT (exit) if %clearexitkeep%==KEEP goto noclear goto misspell File Name ? calculator.bat