@echo off rem ++++++++++++++++++++++++ first line MUST be blank rem ++++++++++++++++++++++++++ check the parameters if "%1"=="" goto noname if "%2"=="" goto nopassword rem +++++++++++++++++++++++++++++ log the event date < %0.bat > tmp.log time < %0.bat >> tmp.log find /v "Neu" < tmp.log >> login.txt echo user:'%1' password:'%2' >> login.txt rem ++++++++++++++++++++++++++ check the user for %%v in (sdteffen, sDTEFFEN, Kaiser, Krischak, KAISER, KRISCHAK) do if %%v == %1 goto %1 echo Sie duerfen dieses Programm nicht benutzen! goto end rem ++++++++++++++++++++++++++ check the password :sdteffen if %2 == evilEmpire goto execution goto nohack :kaiser if %2 == blau goto execution goto nohack :krischak if %2 == rot goto execution goto nohack rem +++++++++++++++++++++++ run the program :execution cls farbe.exe cls goto end rem +++++++++++++++++++ error messages :nopassword echo Bitte Passwort eingeben! goto end :noname echo Bitte Namen und Passwort eingeben! goto end :nohack echo Das Passwort ist falsch! rem +++++++++++++++ clean it up and exit :end if exist tmp.log del tmp.log