Advertisement
Aluf

Make a Folder lock Without any Software

May 19th, 2015
1,223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 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 MDENTER PASSWORD TO OPEN
  5. :CONFIRM
  6. echo -----------------------------------------------------------
  7. echo ==================tmrhacks.blogspot.in==================
  8. echo -----------------------------------------------------------
  9. echo Are you sure you want to lock the folder(Y/N)
  10. echo Press (Y) for Yes and Press (N) for No.
  11. echo -----------------------------------------------------------
  12. set/p "cho=>"
  13. if %cho%==Y goto LOCK
  14. if %cho%==y goto LOCK
  15. if %cho%==n goto END
  16. if %cho%==N goto END
  17. echo Invalid choice.
  18. goto CONFIRM
  19. :LOCK
  20. ren Private "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
  21. attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
  22. echo Folder locked
  23. goto End
  24. :UNLOCK
  25. echo -----------------------------------------------------------
  26. echo ==================tmrhacks.blogspot.in==================
  27. echo -----------------------------------------------------------
  28. echo Enter your user name to unlock folder
  29. set/p "pass=>"
  30. if NOT %pass%==007jb goto FAIL
  31. attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
  32. ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
  33. echo Folder Unlocked successfully
  34. goto End
  35. :FAIL
  36. echo Invalid User Name
  37. goto end
  38. :MDENTER PASSWORD TO OPEN
  39. md Private
  40. echo Private created successfully
  41. goto End
  42. :End
  43.  
  44.  
  45.  
  46. Paste the code given below in notepad and 'Save' it as batch file (with extension '.bat').
  47. Any name will do.
  48. Then you see a batch file. Double click on this batch file to create a folder locker.
  49. New folder named 'Locker' would be formed at the same location.
  50. Now bring all the files you want to hide in the 'Locker' folder. Double click on the batch file to lock
  51. the folder namely 'Locker'.
  52. If you want to unlock your files,double click the batch file again and you would be prompted for
  53. password.
  54. Enter the password and enjoy access to the folder.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement