Searching...
Wednesday, November 16, 2016

How to Lock a Folder Using Code.

November 16, 2016

Hello friends, In this tutorial we will discuss on How to lock a folder without any software. Before starting this tutorial we must have the knowledge of how to create a folder and why folder privacy is important for us.  Today I tell you two simple methods to protect your folder. I hope that will you really enjoy this.

So lets get Start:-


METHOD FIRST

1)  Create a folder which you want to put your password.
2)  Open your notepad and paste the code in your notepad.

cls
@ECHO O
FF
title my 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%== PASSWORD_COMES_HERE 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


3) when you open your code in notepad put your password name and put password, see below image.

4)  when you put your folder name and password go to file and click on save as and put your file and name and put his extension (your folder name.bat) and save as file column put (All Files). See image.

5) Remember save your file in which place where you want to hide your personal data. Then close your notepad. And go your folder where you save your data, you see your bat file. Double click on it and you see a folder, put your data in your folder. See image.



6) When you put your data in folder, double click your bat folder and you see a window screen in front of you type here “y” and enter, you see your private folder is hidden, then go back on folder  and click on it and hide this folder no one see your personal folder and if anyone see your folder then he have to put password a password to open your private or personal folder.








All Done.

I will Post other methods later to lock Folder easily.

Please don't forget to Share. 
<

0 comments:

Post a Comment