How to Lock a Folder in Windows System, Without any Software?????

Posted on

So you have a content that you need to hide from your friends or family, The best way to do will be Hide the folder from the user. And if you need a Folder Lock Software, you would do that probably by googling it. How about making it a bit too geeky. Sounds fun right! Ahem. In this tutor I ‘ll guide you to do what I had exactly mentioned in the Title.

* Copy n Paste the following code to Notepad,

title Folder Locker
if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK
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.
ren Locker “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
attrib +h +s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
echo Folder locked
goto End
echo Enter password to Unlock folder
set/p “pass=>”
if NOT %pass%==PASSWORD 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
echo Invalid password
goto end
md Locker
echo Locker created successfully
goto End

* Replace your own Password, instead of PASSWORD in the above Code.
* Save the file with “*.bat” extension, The Filename can be anything that you prefer.
* When you open the file you had created, a new folder named Locker would be created.
* Just move the Folders & Files, that you need to protect. Again click the created file and press Y to lock the folder.
* To reopen the file again, Double-Click on the *.bat file and enter the password.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s