Advertisement
1STdewGmztvThailand

Locker Folder

Feb 16th, 2016
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.92 KB | None | 0 0
  1. @ECHO OFF
  2. title Folder Private
  3. if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto :UNLOCK
  4. if NOT EXIST Private goto :MDLOCKER
  5.  :CONFIRM
  6. echo Are you sure you want to lock the 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 Private "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 folder
  21. set/p "pass=>"
  22. if NOT %pass%== password here goto :FAIL
  23. attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
  24. ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
  25. echo Folder Unlocked successfully
  26. goto :End
  27.  :FAIL
  28. echo Invalid password
  29. goto :end
  30.  :MDLOCKER
  31. md Private
  32. echo Private created successfully
  33. goto :End
  34.  :End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement