This tutorial will guide you through the steps required to create a locked folder in Windows 7 – without installing any additional 3rd party software.
Note: while the steps will guide you to make a hidden password protected folder, it is not 100% secured. It can stop average computer users from accessing it, but experts may be able to find out the password and access the folder.
1. Create a new folder, and name it anything you like. E.g, my private folder.
2. Go in the folder you just created, and right click on blank area. On the pop-up menu, make a New Text Document .
3. Open the text document you just made, and copy the following into it:
cls
@ECHO OFF
echo Folder Locker Started
Pause
title Folder Private
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Private goto MDLOCKER
:CONFIRM
echo Are you sure you 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 Private "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%== PASSWORD_GOES_HERE goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End
Pause
4. At where the PASSWORD_GOES_HERE is, replace it with your own password.
Note: I recommend you back up the file first in case you forgot the password.
5.Now click SAVE AS in the text document. Save it as: Locker.bat, and make sure it is saved as type
ALL FILES.
6. Close the text document and double click on locker.bat. A black screen should pop up and follow the instructions given. A file named "Private" should be created automatically.
7. To unlock the file: type in the password you set earlier when it tells you to.
To lock the file, type in Y/N, to determine if you want to lock it.
8. That's it. Enjoy using this locker!