BatchHacker

Simple Batch - Desktop Lock 1.0

Aug 19th, 2013
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. REM To resset the password go to %appdata% and delete the sec.sav file
  3. REM TO USE THIS CREATE A FOLDER NAMED Desktop ON your Desktop!
  4. color 0a
  5. title Desktop Locker - 1.0
  6. cd %appdata%
  7. if not exist sec.sav goto maksec
  8. ren sec.sav sec.bat
  9. call sec.bat
  10. ren sec.bat sec.sav
  11. :RELOAD
  12. cls
  13. echo Enter the password! :D
  14. echo.
  15. set /p InPutPW=Passwort:
  16. if "%InPutPW%"=="%pw%" goto UNLOCK
  17. cls
  18. echo Password is wrong! :P
  19. echo.
  20. pause >>nul
  21. goto RELOAD
  22. :UNLOCK
  23. cls
  24. cd %userprofile%\Desktop
  25. if not exist Desktop md Desktop
  26. attrib -h -s Desktop
  27. cls
  28. echo Your folder is now visible! :D
  29. echo.
  30. echo Press a key to continue :)!
  31. pause >>Nul
  32. attrib +h +s Desktop
  33. cls
  34. echo Done! :D
  35. pause >>nul
  36. exit
  37. :maksec
  38. cls
  39. echo Please enter your new password!
  40. echo.
  41. set /p pw=Passwort:
  42. if "%pw%"=="" goto maksec
  43. echo set pw=%pw%>sec.sav
  44. cls
  45. cd %userprofile%\Desktop
  46. echo Completed, Press a key your "Desktop" Folder is now hidden, restart the tool to unlock the folder! ;)
  47. attrib +h +s Desktop
  48. pause>>nul
  49. exit
Advertisement
Add Comment
Please, Sign In to add comment