Programme du dossier coffre incorrecte !
Voici, je tourne sous Windows 7 et j'ai testé ce script sans succès
Code:
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
| cls
@ECHO OFF
title Dossier coffre
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Private goto MDLOCKER
:CONFIRM
echo Voulez-vous bloquer le dossier O=Oui N=Non(O/N)
set/p "cho=>"
if %cho%==O goto LOCK
if %cho%==o goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Coffre "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to unlock folder
set/p "pass=>"
if NOT %pass%== unmotdepasse goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
echo Bien Bloquer GG
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Coffre
echo Dossier coffre créé avec succès
goto End
:End |
Merci de me préciser l'erreur qui se trouve dans ce script :merci: