Advertisement
Nam3lss

Hide folder On windows with script

Apr 2nd, 2024
630
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Winbatch 0.43 KB | Source Code | 0 0
  1. @ECHO OFF
  2. title Folder Private
  3. :CHECK
  4. dir /ah Private >nul 2>nul && (
  5.   goto UNLOCK
  6. ) || (
  7.   goto LOCK
  8. )
  9. :LOCK
  10. attrib +h +s Private
  11. echo Folder locked
  12. goto End
  13. :UNLOCK
  14. echo What is your name
  15. set/p "pass=>"
  16. if NOT %pass%== Your_password goto FAIL
  17. attrib -h -s Private
  18. echo Folder Unlocked successfully
  19. goto End
  20. :FAIL
  21. echo Invalid name
  22. goto UNLOCK
  23. :MDLOCKER
  24. md Private
  25. echo Private created successfully
  26. goto End
  27. :End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement