Guest User

Script dossier invisible Windows

a guest
Jun 25th, 2025
384
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.71 KB | None | 0 0
  1. cls
  2. @ECHO OFF
  3. title Protection de dossier
  4. if EXIST "Secret" goto VERROU
  5. if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto DEVERROU
  6. echo Aucune action...
  7. pause
  8. exit
  9.  
  10. :VERROU
  11. ren "Secret" "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
  12. attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
  13. echo Protection active.
  14. pause
  15. exit
  16.  
  17. :DEVERROU
  18. echo Entrez le mot de passe pour deverrouiller :
  19. set /p "pass=>"
  20. if NOT %pass%==ton_mot_de_passe goto FAIL
  21. attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
  22. ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" "Secret"
  23. echo Protection inactive !
  24. pause
  25. exit
  26.  
  27. :FAIL
  28. echo Mauvais mot de passe !
  29. pause
  30. exit
  31.  
Advertisement
Add Comment
Please, Sign In to add comment