Advertisement
Guest User

locker

a guest
Feb 28th, 2016
4,345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. @ECHO OFF
  2. title lokendra's-hacking-ideas
  3. if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
  4. if NOT EXIST MyFolder goto MDMyFolder
  5. :CONFIRM
  6. echo Are you sure to lock this folder? (Y/N)
  7. set/p "cho=>"
  8. if %cho%==Y goto LOCK
  9. if %cho%==y goto LOCK
  10. if %cho%==n goto END
  11. if %cho%==N goto END
  12. echo Invalid choice.
  13. goto CONFIRM
  14. :LOCK
  15. ren MyFolder "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
  16. attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
  17. echo Folder locked
  18. goto End
  19. :UNLOCK
  20. echo Enter password to Unlock Your Secure Folder
  21. set/p "pass=>"
  22. if NOT %pass%== Your Password goto FAIL
  23. attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
  24. ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" MyFolder
  25. echo Folder Unlocked successfully
  26. goto End
  27. :FAIL
  28. echo Invalid password
  29. goto end
  30. :MDMyFolder
  31. md MyFolder
  32. echo MyFolder created successfully
  33. goto End
  34. :End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement