The problem is when you enter the wrong password, it doesn't goto "wrongpass"
Code: Select all
@ECHO OFF
MODE CON COLS=55 LINES=6
COLOR 70
TITLE Please login..
ECHO --------------------------------------------------
ECHO : Please login... :
ECHO : If you dont know what this is, please exit it. :
ECHO --------------------------------------------------
:: Username section.
:username
SET /P username=Username :
IF /i %username%==Toke goto password
IF /i %username%==Martin goto password
IF /i %username%==Mattias goto password
CLS
goto wronguser
:: Password section.
:password
SET /P password=Password :
IF %password%=="2704005019" goto startprocces
IF %password%==
IF %password%==
CLS
goto wrongpass
:: Wrong login section.
:wronguser
ECHO Wrong username! Please try again...
pause
GOTO username
:wrongpass
ECHO Wrong password! Please try again...
pause
goto password
pause
:: Procces start.
:startprocces
TITLE Loading program...*
CLS
ECHO Okay, the pc you want to crash is now loading it.
timeout 5
ECHO This will take until the timer runs out
timeout /t 30 /nobreak
ECHO Please continue...
pause
cls
ECHO Type "launch" to start the program.
SET /P launch= :
IF /i %launch%==launch goto crash
ECHO Wrong command!
pause
exit
:: The acctaul "crashing" part.
:crash
cls
title Crash program.
ECHO The program will be launched
pause
:loop
start
goto loop
ECHO ERROR!!
pause
exit