How to lock Folders and Files without any software (Create Password protected folder)

Folder Locking, this word would be definitely sounding somewhat personal because people want to hide their folders and files only if they want to hide some personal or important information from others.
Most of us till now found some third party softwares like Folder Locker etc., which require downloading and installation and also those third party softwares would be sometimes asking for Licence all and all.
To minimise these difficulties and problems of Folder locking strategies and softwares, we had come with a technique by which you can lock folders and files without using any software.
By using this you can password lock folders and files which acts as a security software for the protection of our files just like a file encryption software.

Create your password protected folder:

First of all, you have to create a folder which you want to password protect. Just create a normal folder by using 
                         rightclick---->new-->folder.
This folder can have any name of your choice and can be created any where.
We are creating this folder and later we would be password protecting this folder and what all the files (like videos, images etc.,) we want to password protect are inserted into this folder.
















Create the actual password protected Folder Using the .bat extension

Leave the Folder aside for now and Now Open the Notepad and paste the following code into it.
-----------------------------------------------------------------------------------------------------------------------------
@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%== changepassword 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
--------------------------------------------------------------------------------------------------------------------------
Change the word changepassword (the word I marked in red from the code), to your desired password. (For example: lockit )
The word which you replaced changepassword (the word i marked in red in the code) will we your password for your folder.
Save As or Press (Ctrl + S) and name it "private.bat" (without the quotation marks), then click on the "Save as Type" option and choose "All Files (*.*)". Save it inside the folder that you created earlier.
Close the notepad and open the folder that you created earlier, there should be some program named "Private.bat" that you created earlier.

Click on it and it will create a new folder named "Private" by itself. Don't change the folder name, as it may create any error.
Now you have a folder (which you had created before) with a folder inside of it named "Private", put some private things maybe a pictures, videos, or anything in to the "Private" folder.
When you're finished, Doubleclick on the "private.bat", and it should give you the option to lock the folder. 

Press "y" to lock the folder.
Don't panic or surprise, once you agree to locked the folder, the "Private" folder will disappear along with anything you put inside of it.

Done!! Now you have successfully created your password protected Folder.

 To get back your Hidden Folder, again doubleclick on the "private.bat"  file which you presently have and you will get a window where you have to enter the password to unlock your folder.

Once you have entered the password, your folder can be Visible.

------------------------------------------->>>>>END<<<<<----------------------------------------------------->
By using this simple trick, you can password protect your Folder without the use of any Software.

1 comment:

Comment