How to Lock a Folder without any Software in windows 7


It is very important to hide some confidential files in a computer since we want to secured it from the third Party. There are n number of free and paid softwares in the Market for locking a folder. but honestly asking what is the need to find a software If a Folder can be locked in easy steps without any software ?Also See :   How to easily Download Youtube Videos

Lock a Folder without any Folder Locker in Windows 7/8 or in Xp/Vista by creating a batch File.

To lock a Folder, we need to create a batch file. Which is created with the help of a text Document.
1. Copy and paste below code in a 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%==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
2. Type your desired Password by replacing type your password here from the Text file.
3. Now Click on Save as and save it any where with .bat extension. Like Lock.bat
how-to-lock-a-folder-in-windows7
Create Bat file to Lock a Folder
4. Now Click on the File you saved there a separate folder will be created with Name “Locker“.  Copy and Paste the all file or folder in it whom you want to Lock.
5. Then after Click on .bat file. A window will open and ask whether you want to Lock the file Type Y and Click Enter.
Lock-any-folder-in-windows8
Type y and Hit ENTER to Lock the File
6. when you need to Unlock the Folder Simply  Click on Lock.bat file and Enter your password and Hit Enter.
For better Understanding you Can See this Video.

 


Leave a Reply

Your email address will not be published. Required fields are marked *