Calculator bat file commands
calculator app using variables
@echo off
:start
set /p MATH=Input_values?
set /a RESULT=%MATH%
echo %RESULT%
if %RESULT%==5 start app.exe
pause
cls
goto start
Explanations
set /p MATH=Input_values? to initiate a maths calculation
set /a RESULT=%MATH% to show the answers
if %RESULT%==5 start app.exe to perform another process. This is not necessary
pause freeze the screen to move next command. avoid screen exit
goto start to search the word next to goto and re do the process what is written below after the search done on a word
Comments
Post a Comment