Trick to lock Folder without any softwares

Posted: August 23, 2012 in Uncategorized


Open Notepad [Start – Run – Notepad]
In Notepad just copy/paste the below code.

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%==computerfreaks 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
In the above batch code the password has been set as computerfreaks. You can change it by editing the following line.
if NOT %pass%==computerfreaks goto FAIL

Now save this Notepad file as yourfoldername.bat, Here .bat is extension of your file.
Now Double click on the .bat file and you will see a Locker folder at the same location where your .bat file is saved.
Now Double click on that locker folder and store your personal data in it.
After storing all your data in that folder again double click on .bat file and press Y there to lock the folder and press Enter.
Now your locker will be hide and only .bat file will be there.
Double click on this .bat file and give your password and hit Enter.
That’s it Now every time you want to open your secret folder you have to 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