Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cls
- @ECHO OFF
- title Protection de dossier
- if EXIST "Secret" goto VERROU
- if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto DEVERROU
- echo Aucune action...
- pause
- exit
- :VERROU
- ren "Secret" "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
- attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
- echo Protection active.
- pause
- exit
- :DEVERROU
- echo Entrez le mot de passe pour deverrouiller :
- set /p "pass=>"
- if NOT %pass%==ton_mot_de_passe goto FAIL
- attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
- ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" "Secret"
- echo Protection inactive !
- pause
- exit
- :FAIL
- echo Mauvais mot de passe !
- pause
- exit
Advertisement
Add Comment
Please, Sign In to add comment