Advertisement
CyberDarx

Lock

Mar 29th, 2013
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cls
  2. @ECHO OFF
  3. title CyberDarx Db
  4. if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
  5. if NOT EXIST Db goto MDLOCKER
  6. :CONFIRM
  7. echo Do you want to lock Db? (Y/N)
  8. set/p "cho=>"
  9. if %cho%==Y goto LOCK
  10. if %cho%==y goto LOCK
  11. if %cho%==n goto END
  12. if %cho%==N goto END
  13. echo Press Y or N.
  14. goto CONFIRM
  15. :LOCK
  16. ren Db "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
  17. attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
  18. echo Db Locked
  19. goto End
  20. :UNLOCK
  21. echo Input password
  22. set/p "pass=>"
  23. if NOT %pass%== masukkanpassword goto FAIL
  24. attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
  25. ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Db
  26. echo Db has succesfully opened
  27. goto End
  28. :FAIL
  29. echo Password wrong
  30. goto end
  31. :MDLOCKER
  32. md Db
  33. echo Db Succesfully created
  34. goto End
  35. :End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement