How many times have you wished of a software using which you can hide or lock files, restricting its access to other unwanted users. Although there are various software available in market using which you can easily lock/hide files but, i personally dont trust them because most of them are bloatware or spyware. In this post I am going to share a simple yet powerful way of locking and hiding important files using a the following method. Follow the instructions to make you own password protected folder (Without any software !!):- 1. Open notepad.

2.  Copy the following code in notepad file :  

cls
@ECHO OFF
title Folder Locker
if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” 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-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%==your password here 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
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End

3.  *your password here* = The password that you want to put up to secure your files and folders.

4.  Save it as batch file (with the extension *.bat* ). Name can be anything….just remember that the name that you will give….a new folder will be created by that name only in the same location where you saved ur batch file…!! For example:- Locker.bat

5.  Now you will see a batch file. Double click it to create a folder locker ( A new folder named Locker would be formed at the same location )

6.  Thats it you have now created your own locker and that too without using any software !

7.  Brings all the files you want to hide in the locker folder.

8.  Double click the batch file to lock the folder namely Locker.

9.  The folder will be hidden and secured with a password.

10.  Now, to unlock the folder, double click the batch file again.

11.  A DOS window will appear asking you to enter the password that you have given in the code.

12. Enter the password and the folder appears again..!!

13. Now DO READ THIS POINT:- in the above code which i have given…..wherever the *double quotes* are appearing……after copying the code in the notepad file…….delete all the double quotes and THEN again you yourself type them in the same place as before…..else this code might not work…..

CONGRATULATIONS MY FRIENDS…YOU HAVE SUCCESSFULLY SECURED YOU IMPORTANT FILES AND FOLDERS WITH A PASSWORD WITHOUT USING ANY SOFTWARE…!! 🙂 Hope you all will like this post… 🙂 🙂

Advertisements