Shortcut Calculator App .bat

Solved
nightsheart Posted messages 319 Registration date   Status Member Last intervention   -  
dubcek Posted messages 18627 Registration date   Status Contributor Last intervention   -
Hello,

I currently have no knowledge of programming in .bat.
I only know that you can write in a text file and change the extension to .bat!

I would like to run a small test by creating a .bat file that launches the Windows Calculator program.
"%SystemRoot%\system32\calc.exe"

Then, I would like this program to execute the operation:
5+2

This program would stop there so that I can observe the result.

Thank you for helping me with the language to use for performing the calculation.

Thank you in advance,

Configuration: Windows XP / Firefox 19.0

3 answers

  1. marwenovich Posted messages 121 Status Member 9
     
    you can launch the calculator by using only its path
    either by : %SystemRoot%\system32\calc.exe
    or by : calc.exe
    or by : start calc.exe

    but for the calculation operation sorry you cannot :(
    0
  2. nightsheart Posted messages 319 Registration date   Status Member Last intervention   30
     
    Thank you for the response.
    I’m therefore giving up on the idea...
    0
  3. dubcek Posted messages 18627 Registration date   Status Contributor Last intervention   5 660
     
    hello
    integer calculations can be performed by the DOS
    cmd /c "set /a x=5+2 & echo.& pause"
    0