So have you ever had the need to lock a folder on your computer? See my computer runs 24/7 and well its great that its password protected it but there are times its on and I'm not in front of it. Like most there are some things that should be private on my computer. Well here is a easy way to lock a folder down on your computer without having to download any program or any application.
How To Lock A Computer Folder
1. First find the folder you would like to lock (for my example I'm going to lock folder "123")

2. Open the folder and then open a notepad (start > All programs > Accessories > Notepad)
Here is the script to paste into the notepad:
cls
@ECHO OFF
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 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
3. Once you save it you will get a prompt (see pic below) and you will see a new folder pop up called "private". Move the files you what to lock into that "private" folder.

4. Once you move your files into the "private" folder (except for the locker file - leave that out) then type in a Y that you would like to lock the folder

5. Once you do that you will see your folder is now hidden. To make it visible again simply click on the "locker" and it will prompt you for the password (for the example my password was "pass123")

This is what it will look like in your documents once the folder is locked:

All you see is the "locker" and nothing else.


Member Buzz
2 days 16 hours ago
4 days 18 hours ago
4 days 19 hours ago
6 days 20 hours ago
6 days 23 hours ago
6 days 23 hours ago
1 week 1 hour ago
1 week 2 hours ago
1 week 5 hours ago
1 week 13 hours ago