-3
Ich habe diesen Code in einer Batch-Datei -Batch - gehe zu gehen nicht zu
@echo off
title Bloons Trivia Quiz by LumiteDubbz
color f0
:intro
echo -----------===========-----------
echo Welcome to the Bloons Trivia Quiz!
echo -----------===========-----------
echo ---------------------------------
echo Press any key to continue the fun!
timeout 1000 >nul
choice /c yn /m "Do you want to activate Dark Mode?"
if "%errorlevel%" == "1" goto :test
if "%errorlevel%" == "0" goto :test2
:test
color 0f
echo Dark Mode activated!
timeout 10
cls
:test2
color f0
echo Light Mode sustained!
pause
Allerdings, wenn ich Typ „N“ noch zu „Test“ geht und wenn ich Typ „Y“ es geht an " Test“, dann‚test2‘
Versuchen Sie direkt nach der "Auswahl" -Zeile, echo "% errorlevel%" und kommen Sie zu Ihrer eigenen Schlussfolgerung. – Magoo
Danke, wer auch immer die modifizierte Version gab! Funktioniert ein Charme! Kann ein Administrator dies jetzt als archiviert markieren? – LumiteDubbz
Drücken Sie einfach das große Häkchen neben der Antwort, wodurch die Frage als beantwortet und als Pluspunkte markiert wird. – Magoo