Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mode con lines=15 cols=80
- color 0a
- @ echo off
- :start
- cls
- set wahl=0
- echo ------Menu-------
- echo Login [l]
- echo Registriern [r]
- echo Shutdown [s]
- echo -----------------
- set/p wahl=Bitte waehlen:
- if "%wahl%"=="l" goto a
- if "%wahl%"=="r" goto b
- if "%wahl%"=="s" goto shutdown
- if "%Wahl%"=="" goto c
- if not "%wahl%"=="l"=="r"=="s" goto c
- :shutdown
- EXIT
- :a
- cls
- set usernameb = 0
- set/p usernameb=Username:
- if "%usernameb%" == "admin" goto ad
- if "%usernameb%" == "guest" goto gu
- if "%usernameb%" =="" goto nv
- if not "%usernameb%" == "guest" goto nv
- if not "%usernameb% =="admin" goto nv
- :b
- cls
- echo Um sich zu registrieren wenden sie sie sich bitte and den Systemadministrator.
- echo Sie koennen jedoch ein temporaeres Profil mit beschraenkten Berechtigungen erstellen.
- echo Moechten sie dies nun tun?
- echo Ja [j]
- echo Nein [n]
- set temp = 0
- set /p temp=Bitte waehlen:
- if "%temp%" == "j" goto temp_j
- if "%temp%" == "n" goto temp_n
- :c
- cls
- echo Eingegebene Option ist nicht vorhanden. Leite zu Startbildschirm weiter.
- timeout /t 5
- goto start
- :ad
- cls
- set password_ad = 0
- set /p password_ad=Password:
- if "%password_ad%" == "654321" goto ad_home
- if "%password_ad%" == "" goto pwf
- if not "%password_ad%" == "654321" goto pwf
- :ad_l
- set password_ad = 0
- set /p password_ad=Password:
- if "%password_ad%" == "654321" goto ad_home
- if "%password_ad%" == "" goto pwfl
- if not "%password_ad%" == "654321" goto pwfl
- :pwfl
- echo Passwort inkorrekt.
- if "%usernameb%" == "admin" goto ad_l
- if "%usernameb%" == "guest" goto gu_l
- :gu
- cls
- set password_gu = 0
- set /p password_gu=Password:
- if "%password_gu%" == "123456" goto gu_home
- if "%password_gu%" == "" goto pwf
- if not "%password_gu%" == "123456" goto pwf
- :gu_l
- set password_gu = 0
- set /p password_gu=Password:
- if "%password_gu%" == "123456" goto gu_home
- if "%password_gu%" == "" goto pwfl
- if not "%password_gu%" == "123456" goto pwfl
- :nv
- cls
- echo Diese Username existiert nich. Registrieren sich bitte. Leite zu Startbildschirm weiter.
- timeout /t 5
- goto start
- :pwf
- cls
- echo Passwort inkorrekt. Leite zu Startbildschirm weiter.
- timeout /t 5
- goto start
- :gu_home
- cls
- echo -------------------------------------
- echo Wilkommen Guest
- echo Starte Betriebsystem...
- echo -------------------------------------
- PING 1.1.1.1 -n 1 -w 5000 >nul
- cls
- echo Betriebsystem: Windows 100 Version: 1.0
- goto bs
- :ad_home
- cls
- echo -------------------------------------
- echo Wilkommen Admin
- echo Starte Betriebsystem...
- echo -------------------------------------
- PING 1.1.1.1 -n 1 -w 5000 >nul
- cls
- echo Betriebsystem: Windows 100 Version: 1.0
- goto bs
- :temp_n
- cls
- echo Leite zu Startbildschirm weiter.
- timeout /t 5
- goto start
- :temp_j
- cls
- set temp_u=0
- set/p temp_u=Username eingeben:
- if "%temp_u%"=="admin" goto temp_u_b
- if "%temp_u%"=="guest" goto temp_u_b
- if "%temp_u%"=="" goto temp_u_n
- goto temp_home
- :temp_u_b
- echo Username bereits vorhanden. Bitte wählen sie einen anderen Benutzernamen.
- timeout /t 5
- goto temp_j
- :temp_u_n
- echo Bitte geben sie einen Benutzernamen ein.
- timeout /t 5
- goto temp_j
- :temp_home
- cls
- set temp_true = 1
- echo -------------------------------------
- echo Wilkommen %temp_u%
- echo Starte Betriebsystem...
- echo -------------------------------------
- PING 1.1.1.1 -n 1 -w 5000 >nul
- cls
- echo Betriebsystem: Windows 100 Version: 1.0
- goto bs
- :bs
- set command = 0
- set /p command=">"
- if "%command%" == "" goto nocommand
- if "%command%" == "list" goto list
- if "%command%" == "clear" goto clear
- if "%command%" == "list ?" goto list_?
- if "%command%" == "clear ?" goto clear_?
- if "%command%" == "logout" goto logout
- if "%command%" == "logout ?" goto logout_?
- If "%command%" == "lock" goto lock
- if "%command%" == "lock ?" goto lock_?
- if "%command%" == "calc" goto calc
- if "%command%" == "calc ?" goto calc_?
- if "%command%" == "dir ?" goto dir_?
- if "%command%" == "dir" goto dir
- if "%command%" == "cd" goto cd
- if "%command%" == "cd ? " goto cd_?
- goto wrongcommand
- :wrongcommand
- echo Commando nicht bekannt.
- goto bs
- :nocommand
- echo Geben sie ein Commando ein.
- goto bs
- :list
- echo Fuer Hilfe zu einem Command geben sie den Command und dann ? ein. Zum Beispiel list ?.
- echo clear
- echo list
- echo logout
- echo lock
- echo calc
- echo dir
- goto bs
- :list_?
- echo Listet alle vorhandenen Commands auf. Fuer Hilfe zu einem Command geben sie den Command und dann ? ein. Zum Beispiel list ?.
- goto bs
- :clear
- cls
- goto bs
- :clear_?
- echo Loescht alles auf was auf dem Bildschirm angezeigt wird.
- goto bs
- :logout
- cls
- set "usernameb=nouser"
- echo Logge aus...
- PING 1.1.1.1 -n 1 -w 5000 >nul
- goto start
- :logout_?
- echo Loggt sie aus und bringt sie zum Startbildschirm.
- goto bs
- :lock
- cls
- if "%usernameb%" == "admin" goto lock_ok
- if "%usernameb%" == "guest" goto lock_ok
- goto temp_lock
- :lock_ok
- echo Computer durch %usernameb% gesperrt.
- echo Geben sie bitte das Passwort von %usernameb% ein um den Computer zu entsperren.
- if "%usernameb%" == "admin" goto adminlock
- if "%usernameb%" == "guest" goto guestlock
- :temp_lock
- echo Dieser Befehl ist fuer temporaere Profile nicht verfuegbar.
- goto bs
- :adminlock
- goto ad_l
- :guestlock
- goto gu_l
- :lock_f
- echo Passwort inkorrekt.
- if "%usernameb%" == "guest" goto guestlock
- if "%usernameb%" == "admin" goto adminlock
- :lock_?
- echo Sperrt den Computer, um ihn zu entsperren muss Ihr Passwort eingegben werden.
- goto bs
- :calc_?
- echo Berechnet eine Gleichung. Zum Verlassen der Rechners quit eingeben und mit Enter bestätigen.
- goto bs
- :calc
- set /p gleichung=Gleichung:
- if "%gleichung%" == "quit" goto bs
- set /a loesung=%gleichung%
- echo Losung:%loesung%
- goto calc
- :dir
- set /p pfad=Pfad:
- dir %pfad%
- goto bs
- :dir_?
- echo Gibt den Inhalt des gewählten Pfades wieder
- goto bs
- :cd
- set /p cda=cd:
- cd %cda%
- goto bs
- :cd_?
- goto bs
Add Comment
Please, Sign In to add comment