Code: Select all
:main
@echo off & title Login & cls
echo ========================
echo ------Login Menu========
echo ========================
pause >nul
call db.bat
:lol
goto main
pause
:finish
echo allright this worked out nice
echo now i can finally continue this piece of shit xD
pause
batch2:
Code: Select all
@echo off & title Login & cls & goto usrid
:usrid
ECHO.
set/p usr=Login As:
if %usr%==Eugene goto psw
if %usr%==Toxic goto psw
if %usr%==Plague goto psw
if %usr%==Jason goto psw
goto usrid
:psw
CLS
ECHO Enter autherization code:
SET /p psw=
set label==finish
IF %psw%==lol1 call start.bat %label%
pause >NUL
:INVALID
CLS
ECHO INAVLID LOGIN.....
PING -n 3 127.0.0.1 > NUL
ECHO Please try again...
PING -n 3 127.0.0.1 > NUL
GOTO USERID
:MAIN
ECHO Welcome Nemraiku...
PING -n 3 127.0.0.1 > NUL
the task is simple
start.bat in the first lines jumps over to login in db.bat after that u type in user id and password. and now the part im strugling with is coming.
after sucessfully typing the password it will call up start.bat again but this time not from the begining of the script. i want it to jump straight over to the labeled :finish. instead of going to :main.
but it keeps going to :main.
i just dont get it why it wont skip it and jump to the label i want xDDD
is there anyone here who understand what i mean and see a possiblie solution to this problem?