Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- set /A timesrun= 1
- :start
- ping localhost -n 2 >nul
- title Loading EZCalc (Executed Calculator Scripts %timesrun% Times)
- ping localhost -n 2 >nul
- title EZCalc Developer Build by Horizon Development
- echo ---------[EZCALC]---------
- echo (+) - (-) - (x) - (/)
- echo Script used %timesrun% times!
- echo --------------------------
- set /p math=
- goto setop
- :setop
- if '%math%' == '+' goto plus
- if '%math%' == '-' goto minus
- if '%math%' == 'x' goto times
- if '%math%' == '/' goto slash
- ping localhost -n 2 >nul
- :plus
- cls
- goto add
- exit
- :minus
- cls
- goto subtract
- exit
- :times
- cls
- goto multiply
- exit
- :slash
- cls
- goto divide
- exit
- :add
- echo please enter the numbers to add
- echo first number:
- set /p one=
- cls
- echo second number:
- set /p two=
- goto last
- pause
- exit
- :subtract
- echo please enter the numbers to subtract
- echo first number:
- set /p one=
- cls
- echo second number:
- set /p two=
- goto last
- pause
- exit
- :multiply
- echo please enter the numbers to multiply
- echo first number:
- set /p one=
- cls
- echo second number:
- set /p two=
- goto last
- pause
- exit
- :divide
- echo please enter the numbers to divide
- echo first number:
- set /p one=
- cls
- echo second number:
- set /p two=
- goto last
- pause
- exit
- :last
- if '%math%' == '/' if '%two%' == '0' echo You cannot divide by zero!
- if '%math%' == '/' if '%two%' == '0' ping localhost -n 2 >nul
- if '%math%' == '/' if '%two%' == '0' cls
- if '%math%' == '/' if '%two%' == '0' echo Exiting EZCalc...
- if '%math%' == '/' if '%two%' == '0' ping localhost -n 3 >nul
- if '%math%' == '/' if '%two%' == '0' exit
- set /A done= %one% %math% %two%
- echo done. the answer is %done%.
- echo Exporting answer to C:\Users\%username%\Documents\ezcalclogs\log.ezlog!
- md C:\Users\%username%\Documents\ezcalclogs
- echo Calculator Log -- Answer is %done% > C:\Users\%username%\Documents\ezcalclogs\log.ezlog
- pause
- set /A timesrun= %timesrun% + 1
- goto start
- cls
- exit
Advertisement
Add Comment
Please, Sign In to add comment