make FOLDERLOCK with notepad


SUBMITTED BY: Guest

DATE: Oct. 28, 2013, 6:01 p.m.

FORMAT: Text only

SIZE: 1.3 kB

HITS: 1602

  1. 1. open notepad
  2. 2. copy source code below
  3. cls
  4. :End
  5. @ECHO OFF
  6. title Folder Locker
  7. if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
  8. if NOT EXIST Locker goto MDLOCKER
  9. :CONFIRM
  10. echo Are you sure u want to Lock the folder(Y/N)
  11. set/p "cho=>"
  12. if %cho%==Y goto LOCK
  13. if %cho%==y goto LOCK
  14. if %cho%==n goto END
  15. if %cho%==N goto END
  16. echo Invalid choice.
  17. goto CONFIRM
  18. :LOCK
  19. ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
  20. attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
  21. echo Folder locked
  22. goto End
  23. :UNLOCK
  24. echo Enter password to Unlock folder
  25. set/p "pass=>"
  26. if NOT %pass%==Password_agan goto FAIL
  27. attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
  28. ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
  29. echo Folder Unlocked successfully
  30. goto End
  31. :FAIL
  32. echo Invalid password
  33. goto end
  34. :MDLOCKER
  35. md Locker
  36. echo Locker created successfully
  37. goto End
  38. 3. save with extention file *.bat (ex: test.bat)
  39. GOOD LUCK!

comments powered by Disqus