Skip to content

Instantly share code, notes, and snippets.

@mritzmann
Last active August 29, 2015 14:05
Show Gist options
  • Save mritzmann/f87802f8c37bbc76bf3f to your computer and use it in GitHub Desktop.
Save mritzmann/f87802f8c37bbc76bf3f to your computer and use it in GitHub Desktop.
Einfaches Menü
@echo off
:: Ein einfaches Auswahl-Menue
:: Erstellt für: http://forum.chip.de/batch-shell-python-perl/auswahl-menue-batch-1807258.html
::
:: Momentan wird bei jeder Auswahl der Taschenrechner gestartet.
echo.
echo Ein Auswahl-Menue
echo.
echo.
echo Folgende Optionen stehen zur auswahl:
echo.
echo [1] Erste Option
echo [2] Zweite Option
echo [3] Dritte Option
echo [4] Vierte Option
echo [5] Fuenfte Option
echo.
echo -----------------------------------------------------
echo.
:: Eingabe durch Benutzer
set asw=0
set /p asw="Bitte Auswahl eingeben: "
:: Benutzereingabe verarbeiten
if %asw%==1 goto ersteoption
if %asw%==2 goto zweiteoption
if %asw%==3 goto dritteoption
if %asw%==4 goto vierteoption
if %asw%==5 goto fuenfteoption
goto END
:: Sprungmarken
:ersteoption
calc.exe
goto END
:zweiteoption
calc.exe
goto END
:dritteoption
calc.exe
goto END
:vierteoption
calc.exe
goto END
:fuenfteoption
calc.exe
goto END
:END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment