Trick to make calculator using command prompt.

. Copy the file(Code) in Notepad.
(Note:-If u r seeing in below code something like
this -: IV , then copy all the codes in your
notepad and Find “Big GrinIV” and change that in
to
PHP Code:
: DIV
.)

Quote:
TITLE Calculator
ECHO OFF
CLS
ECHO -by Tricksduniya.com
: TOP
color 3f
Cls
ECHO
————————————
ECHO[
ECHO DOS
CALCULATOR
ECHO[
ECHO
————————————
ECHO[
ECHO[
ECHO + = Sum
ECHO[
ECHO – = Sub
ECHO[
ECHO / = Division
ECHO[
ECHO * = Multiply
ECHO[
ECHO ~ = Exit
ECHO[
ECHO[
ECHO
————————————
ECHO[
SET /P ch=” Enter Symbol ”
IF % ch% EQU + GOTO:SUM
IF % ch% EQU – GOTO:SUB
IF % ch% EQU / GOTO IV
IF % ch% EQU * GOTO:MUL
IF % ch% EQU ~ GOTO:EXI
IF % ch% GTR . GOTO:Hel
: SUM
CLS
ECHO
————————————
ECHO[
ECHO SUM
ECHO[
ECHO
————————————
ECHO[
set /p A=” Enter First Number = ”
ECHO[
set /p B=” Enter Second Number = ”
SET /A C=A+B
ECHO[
ECHO
————————————
ECHO % A %+ % B % =% C %
PAUSE
GOTO:TOP
: SUB
CLS
ECHO
————————————
ECHO[
ECHO
SUBTRACTION
ECHO[
ECHO
————————————
ECHO[
set /p A=” Enter First Number = ”
ECHO[
set /p B=” Enter Second Number = ”
SET /A C=A-B
ECHO[
ECHO
————————————
ECHO % A %- % B % =% C %
PAUSE
GOTO:TOP
: DIV
CLS
ECHO
————————————
ECHO[
ECHO DIVISION
ECHO[
ECHO
————————————
ECHO[
set /p A=” Enter First Number = ”
ECHO[
set /p B=” Enter Second Number = ”
SET /A C=A/B
ECHO[
ECHO
————————————
ECHO % A %/ % B % =% C %
PAUSE
GOTO:TOP
: MUL
CLS
ECHO
————————————
ECHO[
ECHO
MULTIPICATION
ECHO[
ECHO
————————————
ECHO[
set /p A=” Enter First Number = ”
ECHO[
set /p B=” Enter Second Number = ”
SET /A C=A*B
ECHO[
ECHO
————————————
ECHO % A %* % B % =% C %
PAUSE
GOTO:TOP
: EXI
EXIT
: HEL
CLS
ECHO
————————————
ECHO[
ECHO HELP
ECHO[
ECHO
————————————
ECHO Press (+ ) For Sum, ( -) For
Sub, (/ ) for Division, ( * ) for
Multiply.
PAUSE
GOTO:TOP
2. Save the file as something like
Calculator.bat. The best folder place for this file
is in your My Documents(any OS besides Vista) or
Documents(Windows Vista) folder.( Note:- File
extension must be like “abc.bat” .)
3. Double click on file and enjoy.

ideastore4u.WordPress.com

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s