Skip to content

Instantly share code, notes, and snippets.

@Contramane
Last active July 10, 2024 14:09
Show Gist options
  • Save Contramane/61c6637af0268e3eafd8320014f64eb5 to your computer and use it in GitHub Desktop.
Save Contramane/61c6637af0268e3eafd8320014f64eb5 to your computer and use it in GitHub Desktop.
Batch Script Utility with Visual Effects: This batch script offers system utilities and visual effects with password protection ("INV"). Features include showing IP, user info, files, system info, and task monitoring. Placeholder options for cache clearing, login locations, graphics card updates, and disk optimization. Save it as "zentro.bat"
@echo off
color 0A
cls
REM Passwort abfragen
:enter_password
set /p "password=Enter password: "
REM Überprüfen, ob das Passwort korrekt ist
if /i "%password%" neq "INV" (
echo Incorrect password! Please try again.
goto enter_password
)
REM Visuelle Effekte (hier wird der Effekt zweimal hintereinander ausgeführt)
for /l %%i in (1, 1, 2) do (
color 0A
cls
echo.
echo ______ ______ __ __ ______ ______
echo /\ ___\ /\ __ \ /\ "-.\ \ /\ ___\ /\ __ \
echo \ \ __\ \ \ __ \ \ \ \-. \ \ \___ \ \ \ __ \
echo \ \_____\ \ \_\ \_\ \ \_\\"\_\ \/\_____\ \ \_\ \_\
echo \/_____/ \/_/\/_/ \/_/ \/_/ \/_____/ \/_/\/_/
echo.
timeout /t 1 >nul
)
REM Warte 3 Sekunden
timeout /t 3 >nul
REM Benutzereingabe des Namens
set /p "username=Enter your name: "
echo.
echo Welcome, %username%! Press Enter to continue.
pause > nul
REM Optionen anzeigen
:show_options
cls
echo.
echo ______ ______ __ __ ______ ______
echo /\ ___\ /\ __ \ /\ "-.\ \ /\ ___\ /\ __ \
echo \ \ __\ \ \ __ \ \ \ \-. \ \ \___ \ \ \ __ \
echo \ \_____\ \ \_\ \_\ \ \_\\"\_\ \/\_____\ \ \_\ \_\
echo \/_____/ \/_/\/_/ \/_/ \/_/ \/_____/ \/_/\/_/
echo.
echo ==============================
echo Options Page
echo ==============================
echo 1. Show IP address and connected devices
echo 2. Show information
echo 3. Show all files
echo 4. Start monitoring
echo 5. Show system information
echo 6. Clear cache and optimize PC
echo 7. Show recent login locations
echo 8. Clean and update graphics card
echo 9. Check and optimize disk
echo 10. Embrace eternal darkness
echo 11. Exit
echo ==============================
set /p choice="Enter your choice (1-11): "
REM Auswahl verarbeiten
if "%choice%"=="1" goto ip_address
if "%choice%"=="2" goto show_info
if "%choice%"=="3" goto show_files
if "%choice%"=="4" goto start_monitoring
if "%choice%"=="5" goto show_system_info
if "%choice%"=="6" goto clear_cache_optimize_pc
if "%choice%"=="7" goto show_recent_login_locations
if "%choice%"=="8" goto clean_update_graphics_card
if "%choice%"=="9" goto check_optimize_disk
if "%choice%"=="10" goto embrace_eternal_darkness
if "%choice%"=="11" goto end_script
echo Invalid option! Please choose an option from 1 to 11.
pause
goto :show_options
REM Funktion zur Anzeige der IP Adresse und verbundener Geräte
:ip_address
cls
echo.
echo ==============================
echo Show IP Address and Connected Devices
echo ==============================
ipconfig | findstr /i "IPv4"
echo.
echo Wireless LAN IP Address:
ipconfig | findstr /i "Wireless"
echo.
echo Connected Devices:
arp -a
pause
goto :show_options
REM Funktion zur Anzeige von Informationen
:show_info
cls
echo.
echo ==============================
echo Show Information
echo ==============================
echo First Name: %username%
echo Last Name: [Insert user's last name here]
echo Phone Number: [Insert user's phone number here]
pause
goto :show_options
REM Funktion zur Anzeige aller Dateien
:show_files
cls
echo.
echo ==============================
echo Show All Files
echo ==============================
dir /s /b /a:-d
pause
goto :show_options
REM Funktion zur Überwachung der Aktivitäten
:start_monitoring
cls
echo.
echo ==============================
echo Start Monitoring
echo ==============================
tasklist
pause
goto :show_options
REM Funktion zur Anzeige von Systeminformationen
:show_system_info
cls
echo.
echo ==============================
echo Show System Information
echo ==============================
echo Computer Name:
hostname
echo Operating System:
systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
echo System Manufacturer:
systeminfo | findstr /B /C:"System Manufacturer"
echo System Model:
systeminfo | findstr /B /C:"System Model"
echo Processor:
wmic cpu get name
echo Total Physical Memory:
systeminfo | findstr /C:"Total Physical Memory"
echo Available Physical Memory:
systeminfo | findstr /C:"Available Physical Memory"
pause
goto :show_options
REM Funktion zur Bereinigung des Caches und zur Optimierung des PCs
:clear_cache_optimize_pc
cls
echo.
echo ==============================
echo Clear Cache and Optimize PC
echo ==============================
REM Hier könntest du Code einfügen, um den Cache zu löschen und den PC zu optimieren
pause
goto :show_options
REM Funktion zur Anzeige der letzten Anmeldeorte
:show_recent_login_locations
cls
echo.
echo ==============================
echo Show Recent Login Locations
echo ==============================
REM Hier könntest du Code einfügen, um die letzten Anmeldeorte anzuzeigen
pause
goto :show_options
REM Funktion zur Reinigung und Aktualisierung der Grafikkarte
:clean_update_graphics_card
cls
echo.
echo ==============================
echo Clean and Update Graphics Card
echo ==============================
REM Hier könntest du Code einfügen, um die Grafikkarte zu reinigen und zu aktualisieren
pause
goto :show_options
REM Funktion zum Überprüfen und Reinigen der Festplatte
:check_optimize_disk
cls
echo.
echo ==============================
echo Check and Optimize Disk
echo ==============================
REM Hier könntest du Code einfügen, um die Festplatte zu überprüfen und zu optimieren
pause
goto :show_options
REM Funktion zur Umarmung der ewigen Dunkelheit
:embrace_eternal_darkness
color 08
cls
echo.
echo ______ ______ __ __ ______ ______
echo /\ ___\ /\ __ \ /\ "-.\ \ /\ ___\ /\ __ \
echo \ \ __\ \ \ __ \ \ \ \-. \ \ \___ \ \ \ __ \
echo \ \_____\ \ \_\ \_\ \ \_\\"\_\ \/\_____\ \ \_\ \_\
echo \/_____/ \/_/\/_/ \/_/ \/_/ \/_____/ \/_/\/_/
echo.
echo.
echo ==============================
echo EMBRACE THE ETERNAL DARKNESS...
echo ==============================
pause
exit
REM Funktion zum Beenden des Skripts
:end_script
cls
echo.
echo ______ ______ __ __ ______ ______
echo /\ ___\ /\ __ \ /\ "-.\ \ /\ ___\ /\ __ \
echo \ \ __\ \ \ __ \ \ \ \-. \ \ \___ \ \ \ __ \
echo \ \_____\ \ \_\ \_\ \ \_\\"\_\ \/\_____\ \ \_\ \_\
echo \/_____/ \/_/\/_/ \/_/ \/_/ \/_____/ \/_/\/_/
echo.
echo.
echo ==============================
echo GOODBYE!
echo ==============================
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment