I'm making a batch file in which a variable is stored and then a
number is subtracted from it. Lets say I made a variable called
MyVar and then if someone goes to a certain section, then a
number is subtracted from it.
echo Hello! Please select an option...
echo 1 - Go!
echo 2 - Exit
set /p input=Selection:
if %input%==1 goto go
if %input%==2 goto exit
*** Subtracting Code Here ***
echo 60 has been subtracted from MyVar
echo The Variable is now: %MyVar%
ping localhost -n 4 >nul
So how would I go about doing that?
If you give up, might as well give up everything in life.