Advertisement
Guest User

Lock Folder with username

a guest
Oct 19th, 2017
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. @ECHO OFF
  2. echo What is your username ?
  3. echo Or type "create" for create a new account...
  4. set/p "user=>"
  5. if %user%==create goto FOLDER
  6. goto CHECK
  7. :CHECK
  8. if EXIST "%user%" goto LOCK
  9. if NOT EXIST "%user%" goto UNLOCK
  10. :LOCK
  11. echo choose password...
  12. set/p "pass=>"
  13. ren %user% "Control Panel.{"%pass%"}"
  14. attrib +h +s "Control Panel.{"%pass%"}"
  15. goto End
  16. :UNLOCK
  17. echo Enter password to Unlock Your Secure Folder
  18. set/p "pass=>"
  19. if %pass%==create goto FOLDER
  20. attrib -h -s "Control Panel.{"%pass%"}"
  21. ren "Control Panel.{"%pass%"}" %user%
  22. goto End
  23. :FOLDER
  24. echo Choose a Username...
  25. set/p "user=>"
  26. md %user%
  27. :End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement