Guest User

EzCalc Code

a guest
Nov 2nd, 2020
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. set /A timesrun= 1
  3.  
  4. :start
  5. ping localhost -n 2 >nul
  6. title Loading EZCalc (Executed Calculator Scripts %timesrun% Times)
  7. ping localhost -n 2 >nul
  8. title EZCalc Developer Build by Horizon Development
  9. echo ---------[EZCALC]---------
  10. echo (+) - (-) - (x) - (/)
  11. echo Script used %timesrun% times!
  12. echo --------------------------
  13. set /p math=
  14. goto setop
  15.  
  16. :setop
  17. if '%math%' == '+' goto plus
  18. if '%math%' == '-' goto minus
  19. if '%math%' == 'x' goto times
  20. if '%math%' == '/' goto slash
  21. ping localhost -n 2 >nul
  22.  
  23. :plus
  24. cls
  25. goto add
  26. exit
  27.  
  28. :minus
  29. cls
  30. goto subtract
  31. exit
  32.  
  33. :times
  34. cls
  35. goto multiply
  36. exit
  37.  
  38. :slash
  39. cls
  40. goto divide
  41. exit
  42.  
  43. :add
  44. echo please enter the numbers to add
  45. echo first number:
  46. set /p one=
  47. cls
  48. echo second number:
  49. set /p two=
  50. goto last
  51. pause
  52. exit
  53.  
  54. :subtract
  55. echo please enter the numbers to subtract
  56. echo first number:
  57. set /p one=
  58. cls
  59. echo second number:
  60. set /p two=
  61. goto last
  62. pause
  63. exit
  64.  
  65. :multiply
  66. echo please enter the numbers to multiply
  67. echo first number:
  68. set /p one=
  69. cls
  70. echo second number:
  71. set /p two=
  72. goto last
  73. pause
  74. exit
  75.  
  76. :divide
  77. echo please enter the numbers to divide
  78. echo first number:
  79. set /p one=
  80. cls
  81. echo second number:
  82. set /p two=
  83. goto last
  84. pause
  85. exit
  86.  
  87. :last
  88. if '%math%' == '/' if '%two%' == '0' echo You cannot divide by zero!
  89. if '%math%' == '/' if '%two%' == '0' ping localhost -n 2 >nul
  90. if '%math%' == '/' if '%two%' == '0' cls
  91. if '%math%' == '/' if '%two%' == '0' echo Exiting EZCalc...
  92. if '%math%' == '/' if '%two%' == '0' ping localhost -n 3 >nul
  93. if '%math%' == '/' if '%two%' == '0' exit
  94. set /A done= %one% %math% %two%
  95. echo done. the answer is %done%.
  96. echo Exporting answer to C:\Users\%username%\Documents\ezcalclogs\log.ezlog!
  97. md C:\Users\%username%\Documents\ezcalclogs
  98. echo Calculator Log -- Answer is %done% > C:\Users\%username%\Documents\ezcalclogs\log.ezlog
  99. pause
  100. set /A timesrun= %timesrun% + 1
  101. goto start
  102. cls
  103. exit
  104.  
  105.  
  106.  
Advertisement
Add Comment
Please, Sign In to add comment