How to lock a folder without any software-using Notepad


Hi guys in this tutorial i am gonna show you How to Lock a folder without any software using notepad.As we know that,day-by-day lots of hackers are trying to steal the confidential data that resides on one system.As a result many of us are trying to protect there confidential data to be hidden by using various types of Folder locks.

How to lock folder without any softwrae.

But as these folders locks are not available for free,they get expire after a period of time.In order to get rid of it in this article i am gonna show you how to create a folder which is password protected.This works in all windows(i.e XP,vista,7,8).To do this Follow the steps that are given below.

Steps:

1.In order to do this,Open notepad( you can do this by pressing windows+R and type in it notepad).


2.Now in that copy the code which is given below.

CODE:

cls
:End
@ECHO OFF
title Folder Locker

cls
:END
@ECHO OFF
title worldtech360 Folder lock /*replace with your desired title */
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%==type 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

                                                      Download


3.Now in the above code replace 'type your password here' with your desired password
4.Now save this file by using an extension (.bat) for example:FILENAME.bat as shown below.
Save the file using .bat extension.
5.Now you will see a batch file on the desktop like this.
Batch file icon.
6.Double click on the batch file Which you have created,now a window will pop up(Command prompt).
Click on the batch file in order to open the command prompt.
7.Now enter the password which you have used in the source code and press Enter.In this i have used worldtech360.
Enter the password which is used in source code.
8. A folder will appear on the desktop as shown below.
Appearance of the Locker.


9.Now drag the files into the folder and again press on the batch file.
10.Now a window will pop,in that type 'y' and  you will see that the folder which appeared on the desktop will disappear.
Press Y to hide the Locker.
12.If you want to open the folder,simply click on the batch file again.
13.But by doing this there is a risk of knowing the password by right clicking on the batch file and press edit option as show below.
Knowing the password by clicking on Edit.
14.In order to avoid this,we are going to convert this .bat file into .exe file by using simple softwares called "Bat-to-exe converter".
15.Open the file which you have download and press on the application and you will see the screen like this.
Bat to exe converter window.
16.Now select the batch file path as shown below.
Browse to the batch file which you want to convert it to .exe file
17.Now you will see a exe file.
.exe file

VIDEO TUTORIAL:

This video is made by the yashwanth(Raj yash) owner of this site.

 
That's it friends now you can hide your confidential data without any loss.If you have any queries feel free to ask us through comments.