home *** CD-ROM | disk | FTP | other *** search
- @echo off
- REM ┌─────────────────────────────────────────────────────────────────────────┐
- REM │ (C) Copyright Erich Schuster 1993 │
- REM │ │
- REM │ Batch zum Aufruf des kleinen Menüprogramms MENU 1.11 │
- REM └─────────────────────────────────────────────────────────────────────────┘
- :START
- menu SUB Beispiel:_DOS-Systemfunktionen Festplatte_prüfen Diskettenfunktionen DOS-Shell
- if errorlevel 255 goto ende
- if errorlevel 10 goto x10
- if errorlevel 9 goto x9
- if errorlevel 8 goto x8
- if errorlevel 7 goto x7
- if errorlevel 6 goto x6
- if errorlevel 5 goto x5
- if errorlevel 4 goto x4
- if errorlevel 3 goto x3
- if errorlevel 2 goto x2
- if errorlevel 1 goto x1
- goto start
-
- :X1
- rem Das ist der 1. Auswahlpunkt...
- drive c >NUL
- if errorlevel 1 goto start
- cls
- echo:
- echo Prüfen der Festplatte C:
- chkdsk c: /F
- pause
- drive d >NUL
- if errorlevel 1 goto start
- cls
- echo:
- echo Prüfen der Festplatte D:
- chkdsk d: /F
- pause
- drive e >NUL
- if errorlevel 1 goto start
- cls
- echo:
- echo Prüfen der Festplatte E:
- chkdsk e: /F
- pause
- goto start
-
- :X2
- rem Das ist der 2. Auswahlpunkt...
- call disk
- goto start
-
- :X3
- rem Das ist der 3. Auswahlpunkt...
- cls
- echo ┌────────────────────────────────────────────────────────────────────────────┐
- echo │ ▓▓▓ Nach Beendigung mit 'EXIT' wieder zurück ! NICHT VERGESSEN !! ▓▓▓ │
- echo └────────────────────────────────────────────────────────────────────────────┘
- prompt='EXIT': $P$G
- command
- prompt=$P$G
- goto start
-
- :X4
- rem Das ist der 4. Auswahlpunkt...
- goto start
-
- :X5
- rem Das ist der 5. Auswahlpunkt...
- goto start
-
- :X6
- rem Das ist der 6. Auswahlpunkt...
- goto start
-
- :X7
- rem Das ist der 7. Auswahlpunkt...
- goto start
-
- :X8
- rem Das ist der 8. Auswahlpunkt...
- goto start
-
- :X9
- rem Das ist der 9. Auswahlpunkt...
- goto start
-
- :X10
- rem Das ist der letzte Auswahlpunkt...
- goto start
-
- :ENDE