Cmd Trick: Create your own calculator using cmd command

Cmd Trick: Create your own calculator using cmd command

What does CMD mean?

This could be the only web page dedicated to explaining the meaning of CMD .Ever wondered what CMD means? Your resource for web acronyms, web abbreviations and netspeak.

What is CMD? 

CMD is “Command”

CMD Definition / CMD Means

The definition of CMD is “Command”

The Meaning of CMD

CMD means “Command”

So now you know – CMD means “Command” – don’t thank us. YW !

What does CMD mean? CMD is an acronym, abbreviation or slang word that is explained above where the CMD definition is given.

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:
  • Code

@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
  • double click on the batch file icon (Clac)
  •  Now open your own Calculator in command prompt window.

if you enjoying this trick ,then share it

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

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