How to Lock and Hide Folders without using any Software

We usually lock folders using softwares but have you ever wondered that you can lock a folder without actually using a software? Well, if you haven’t it is possible and pretty easy too. The idea behind it is simple, here’s how you do it:

1. Firstly open Notepad and paste the following code:

CODE:
cls
@ECHO OFF
title Folder Locker
if EXIST “Control Panel.{21EC2020- 3AEA-1069- A2DD-08002B30309 D}” 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-08002B30309 D}”
attrib +h +s “Control Panel.{21EC2020- 3AEA-1069- A2DD-08002B30309 D}”
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p “pass=>”
if NOT %pass%==type your password here goto FAIL
attrib -h -s “Control Panel.{21EC2020- 3AEA-1069- A2DD-08002B30309 D}”
ren “Control Panel.{21EC2020- 3AEA-1069- A2DD-08002B30309 D}” Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End

2. In the above code, change “type your password here” to your preferred password to reflect your password.
NOTE: You need to remember this as it will be required to unlock the folder.

3. Now Save the file as locker.bat

4. Now double click on locker.bat to create a folder. Once the folder is created you can copy files into it.

5. Once done, to lock it double click on locker.bat. It will ask you “Are you sure you want to lock the folder ” type “y” and hit enter. Your folder will be locked and you won’t be able to see it unless you unlock it.

6. Now if you want to unlock the folder double click on the locker.bat and enter the password and hit enter, the locked folder will reappear.

IMPORTANT NOTE: For security reasons it’s better to move the locker.bat to a safe location after you have successfully locked the folder so that no one finds it. This will ensure that no one can open the locked folder. If the locker.bat is visible people can open it with notepad and view the password. Another thing is that even if you delete the locker.bat after your folder is locked the folder won’t get deleted.

Hope you liked it, locking folders is pretty easy isn’t it?

 

STAY IN TOUCH WITH UPDATES | SUBSCRIBE VIA RSS or Email |

Discussion

6 comments for “How to Lock and Hide Folders without using any Software”

  • mysoft

    it don’t work on vista

  • Josh

    it worked on my vista

  • anonymous

    after the batch file is deleted, how can you recover the locked folder?

  • You need to create another bat file with the same password…

  • manuj

    hi it doesn’t use to work after saving it as locker.bat when we make double click it doesn’t open again when we click it opens but the locker folder creates before pressing ‘Y’.

    2.)when we save any Item in Locker folder again click locker.bat then it again asked u wanna lock the folder then i press Y.but after that when i open the folder it opens without any problem means it doesn’t ask for the password.

  • jayant

    IT DOESNOT WORK FOR ME….WHEN I DOUBLE CLICK THE BAT FILE IT ASK THAT DO YOU WANT TO LOCK THIS FOLDER…BUT THE FOLDER DIDN’T LOCKED.. IS ANY BODY HAVE ANY ANOTHER METHODE TO LOCK FOLDER WITHOUT USING SOFTWARE….MAIL ME jayantv8@gmail.com

web analytics