Advertisement
TrutorialesTV

CarpetaProtegida

Feb 17th, 2016
570
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Awk 1.01 KB | None | 0 0
  1. cls
  2. @ECHO OFF
  3. title Folder CarpetaProtegida
  4. if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303­09D}" goto UNLOCK
  5. if NOT EXIST CarpetaProtegida goto MDLOCKER
  6. :CONFIRM
  7. echo Quiere ocultar la CarpetaProtegida? (S/N)
  8. set/p "cho="
  9. if %cho%==S goto LOCK
  10. if %cho%==s goto LOCK
  11. if %cho%==n goto END
  12. if %cho%==N goto END
  13. echo Invalid choice.
  14. goto CONFIRM
  15. :LOCK
  16. ren CarpetaProtegida "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303­09D}"
  17. attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303­09D}"
  18. echo Folder locked
  19. goto End
  20. :UNLOCK
  21. echo Introduzca la contrasena para mostrar la CarpetaProtegida
  22. set/p "pass="
  23. if NOT %pass%== CAMBIE-ESTE-TEXTO-POR-SU-CONTRASEÑA goto FAIL
  24. attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303­09D}"
  25. ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303­09D}" CarpetaProtegida
  26. echo Folder Unlocked successfully
  27. goto End
  28. AIL
  29. echo Invalid password
  30. goto end
  31. :MDLOCKER
  32. md CarpetaProtegida
  33. echo CarpetaProtegida created successfully
  34. goto End
  35. :End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement