🔒 Closed How to lock a folder with a password in computer

Status
Not open for further replies.

Akihisa

Fanatic
3vhwhjA.webp



1. Right-click inside the folder where the files you want to protect are located. The folder you want to hide can even be on your desktop.
2rPDbNf.webp




2. Select "New" from the contextual menu.




3. Click on "Text Document."
xilzBmS.webp




4. Hit Enter. It doesn't matter what the file will be named. You can delete this text file once the lockable folder has been made.
MDbx1oN.webp




5. Double-click the text file to open it.
8iWTOzk.webp



6. Paste the below text or code into the new document:





Code:
cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u want to Lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==Your-Password-Here goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End





7. Find where it says "Your-Password-Here" in the document.
ynGwE7V.webp




8. Replace "Your-Password-Here" with the password you want to lock the folder with.
Unz5bBP.webp




9. Click File.




10. "Select Save As..."
CKjwfKD.webp



11. Click on the "Text Documents (*.txt)" menu bar that's next to "Save as type:"
CezceRx.webp



12. Select "All Files"
YY5SHgS.webp




13. Change the file name to "FolderLocker.bat"
uUOT0Y5.webp




14. Click "Save."



15. Double-click FolderLocker.
BAN3C1a.webp




The Locker folder has been generated!
mzMVTOY.webp




16. Fill the Locker folder with the items you want to protect.
5Dejgdg.webp




17. Open the FolderLocker file, because it's time to lock that folder up.




18. Type "Y" into the screen. Click Enter, and the Folder Locker window will disappear, along with the Locker folder itself! Your secrets are safe.
Oqe3TMN.png




To unlock the folder, double-click "FolderLocker" to open it.
vr5z25T.webp



Enter the password you entered in Step 8, and click Enter.
W2iQlOy.webp



Y27xMOz.webp



The Locker folder is back. You can open it to find your hidden files. Repeat Steps 17, 18 and 19 to lock the folder again.
r2BxeiY.webp




9JM0obk.webp





Note:
If you forgot ur Password , want to change ur password , or you cannot open it then just open the batch file with windows text editor and repeat step number 8.
 
Status
Not open for further replies.

About this Thread

  • 25
    Replies
  • 931
    Views
  • 19
    Participants
Last reply from:
electromagnus06

Trending Topics

Online now

Members online
1,097
Guests online
1,919
Total visitors
3,016

Forum statistics

Threads
2,293,959
Posts
29,087,697
Members
1,208,016
Latest member
evoid586
Back
Top