Here is a cool hack by which you can lock and unlock any files and folders on windows without installing any software.
Copy the code provided below exactly (including ** line) and paste it into notepad (start-> run-> Notepad.exe). Save as protect.bat (file->save as) and exit notepad. Double click on protect.bat and you will see a new folder on your desktop called “Locker”. Copy all the files you need to be hidden there. Double click on protect.bat again, and it will ask you if you want to hide the folders, type in y and press Enter. To unhide, double click protect.bat, type in your password and press enter…
That’s it!
Following is the code you’ll need to this stuff,
1. cls
2. @ECHO OFF
3. title Folder Locker
4. if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
5. if NOT EXIST Locker goto MDLOCKER
6. :CONFIRM
7. echo Are you sure u want to Lock the folder(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 Invalid choice.
14. goto CONFIRM
15. :LOCK
16. ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
17. attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
18. echo Folder locked
19. goto End
20. :UNLOCK
21. echo Enter password to Unlock folder
22. set/p "pass:"
23. if NOT %pass%== type your password here goto FAIL
24. attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
25. ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
26. echo Folder Unlocked successfully
27. goto End
28. :FAIL
29. echo Invalid password
30. goto end
31. :MDLOCKER
32. md Locker
33. echo Locker created successfully
34. goto End
35. :End
In the above code, edit the line-
if NOT %pass%== type your password here goto FAIL
as
if NOT %pass%== thisIsMyPassword goto FAIL
No comments:
Post a Comment