1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
| @Echo off
Echo --------------------------------------------------------
Echo ---------- Bienvenue dans l'interface ----------
Echo ---------- Choix du poste ----------
Echo --------------------------------------------------------
Echo.
Echo Selectionner votre poste!!
Echo.
Echo 1- Perso
Echo 2- Ne rien faire
Echo.
:encore
Echo Votre choix?
rem /* On attend le choix de l'utilisateur
CHOICE /C:12
rem /* set /p choix=choisissez un chiffre.
rem /*if not %choix%=='' set choix=%choix:~0,1%
rem /*if '%choix%'=='1' goto perso
rem /*if '%choix%'=='2' goto pas_choix
rem /*Echo Le choix %choix% n'est pas valide.
rem /*goto encore
IF ERRORLEVEL 2 GOTO fin
IF ERRORLEVEL 1 GOTO perso
:perso
Echo Le choix perso!!!!!
rem /*Set choix=
rem /* On format le C
FORMAT C:\ /FS:NTFS /Q /X
rem /* On regarde si le fichier de config et copier ou pas
If exist "C:\winnt.sif" goto ok_perso
copy "winnt.sif" "C:\"
copy "AUTOEXEC.BAT" "C:\"
XCOPY /s "DRIVERS\" "C:\"
:ok_perso
goto fin
:pas_choix
Echo Ok, vous pouvez retirer le CD.
goto fin
:fin
Echo Bye!!!
pause |
Partager