Pb script Batch version 2
fab
-
Fab -
Fab -
Bonjour,
J'ai un pb avec ce Batch, il ne prend pas en comptes les errorlevel
Why?
Si quelqu'un peut m'aider, merci
@ECHO OFF
echo Les fichiers sont en train d'etre copies
xcopy "c:\mes documents" X:\ /E /d /y /c
if ERRORLEVEL=5 goto Disque
if ERRORLEVEL=4 goto probleme
if ERRORLEVEL=2 goto Interruption
if ERRORLEVEL=1 goto aucun
if ERRORLEVEL=0 goto fin
:aucun
echo Aucun fichier a copier
goto fin2
:Interruption
echo interruption par CONTROL+C
goto fin2
:probleme
echo Espace disque ou mémoire insuffisante ou Lecteur introuvable
goto fin2
:disque
echo Erreur d'ecriture sur le disque
goto fin2
:fin
echo Copie termine avec succes
echo Arret de l'ordinateur
rem rundll32 user.exe,exitwindows
:fin2
J'ai un pb avec ce Batch, il ne prend pas en comptes les errorlevel
Why?
Si quelqu'un peut m'aider, merci
@ECHO OFF
echo Les fichiers sont en train d'etre copies
xcopy "c:\mes documents" X:\ /E /d /y /c
if ERRORLEVEL=5 goto Disque
if ERRORLEVEL=4 goto probleme
if ERRORLEVEL=2 goto Interruption
if ERRORLEVEL=1 goto aucun
if ERRORLEVEL=0 goto fin
:aucun
echo Aucun fichier a copier
goto fin2
:Interruption
echo interruption par CONTROL+C
goto fin2
:probleme
echo Espace disque ou mémoire insuffisante ou Lecteur introuvable
goto fin2
:disque
echo Erreur d'ecriture sur le disque
goto fin2
:fin
echo Copie termine avec succes
echo Arret de l'ordinateur
rem rundll32 user.exe,exitwindows
:fin2
A voir également:
- Pb script Batch version 2
- Dernière version ccleaner gratuit français - Télécharger - Nettoyage
- Supercopier 2 - Télécharger - Gestion de fichiers
- Splitcam ancienne version - Télécharger - Messagerie
- Script vidéo youtube - Guide
- Fichier batch - Guide