If the variable is equal, for example, 1then goto- start1, BUT if the same variable is equal 2, then goto- start2.
This is what I still have:
if %method% == "1" (goto start1)
if %method% == "2" (goto start2)
:start1
echo start1
pause
exit
:start2
echo start2
pause
exit
But even if the variable methodis equal 2, it always echoes me start1...
source
share