freelosopher

Lock Folder - WindowsChimp

Apr 20th, 2019
147,877
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @ECHO OFF
  2. if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
  3. if NOT EXIST Private goto MDPrivate
  4. :CONFIRM
  5. echo Are you sure to lock this folder? (Y/N)
  6. set/p "cho=>"
  7. if %cho%==Y goto LOCK
  8. if %cho%==y goto LOCK
  9. if %cho%==n goto END
  10. if %cho%==N goto END
  11. echo Invalid choice.
  12. goto CONFIRM
  13. :LOCK
  14. ren Private "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
  15. attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
  16. echo Folder locked
  17. goto End
  18. :UNLOCK
  19. echo Enter password to Unlock Your Secure Folder
  20. set/p "pass=>"
  21. if NOT %pass%== YOUR PASSWORD goto FAIL
  22. attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
  23. ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
  24. echo Folder Unlocked successfully
  25. goto End
  26. :FAIL
  27. echo Invalid password
  28. goto end
  29. :MDPrivate
  30. md Private
  31. echo Private created successfully
  32. goto End
  33. :End
RAW Paste Data