Batch files are text files that contain a sequence of commands commonly used in system command prompt to perform various computer operations like starting programs or running system utilities, etc. In Disk Operating System (DOS) and Windows, batch files are intended to be executed by the command explainer. There are many computer operations that can be performed by using these .bat files. In this article we will know how we can create our own calculator by writing a few commands.

Open notepad file or any other text editor then Copy & Paste the following code into the notepad:

@ECHO OFF
color a
title My Calculator
pause
ECHO ---------------------------------------- -------
ECHO * = MULTIPLY
ECHO + = ADD
ECHO - = SUBTRACT
ECHO / =DIVIDE
ECHO ---------------------------------------- -------
pause

:loop
echo.
echo ---------------------------------------- -------
SET /p UDefine=
SET /a UDefine=%UDefine%
ECHO =
ECHO %UDefine%
ECHO.
goto loop
 
Then save it as “calc.bat” where “.bat” is extension for batch files. Now go to your save location and double click on the batch file icon (Clac), now open your own Calculator in command prompt window.
Calculator in command prompt

You can also convert “.bat” to “.exe” by using “.bat to .exe converter software”. Please follow the link below to


3 تعليقات


  1. I Want to use this medium in appreciating cyber golden hacker , after being ripped off my money,he helped me find my cheating lover he helped me hack her WHATSAPP, GMAIL and kik and i got to know that he was cheating on me, in less than 24 hours he helped me out with everything, cybergoldenhacker is trust worthy and affordable contact him on: cybergoldenhacker at gmail dot com

    ردحذف
  2. If you ever want to change or up your university grades contact cybergolden hacker he'll get it done and show a proof of work done before payment. He's efficient, reliable and affordable. He can also perform all sorts of hacks including text, whatsapp, password decrypt,hack any mobile phone, Escape Bancruptcy, Delete Criminal Records and the rest

    Email: cybergoldenhacker at gmail dot com

    ردحذف
  3. Are you interested in the service of a hacker to get into a phone, facebook account, snapchat, Instagram, yahoo, Whatsapp, get verified on any social network account, increase your followers by any amount, bank wire and bank transfer. Contact him on= hackintechnology.com hackintechnology@gmail.com +12132951376(WHATSAPP)

    ردحذف

إرسال تعليق