How To Lock A Folder Without Any Software

siddhartha_28
Hi All,

I saw this article and did all the necessary functions as mentioned here.
See in bold below in the code as to where i added the password.
The locker named folder disappeared.When again I click on locker.bat,it automatically displays "Enter password to Unlock folder"
and my password which i typed in the code already appears so I simply
click on enter so as to bring my disappeared folder back but it didnt come back.Why?Just FYI,I had first entered the password below in the code
mentioned below and then saved that.Where did that folder go.
Also how do i do it for any of my folders in any of the drives.This folder was automaticaaly created by your code but do I do it for any other folders or was this for saving any folder or data in this locker folder and then disappearing it ,in other words,we can only lock this "locker" named
folder so whatever we need to lock,we need to put in this folder and then make it disappear.HELP me out plz.
Mail your answers to me on [Login to view]. Please reply
back on this id at the earliest

"Dear All,
Good Morning, Here is the procedure to lock your folder without any software. Try it. Hope it is very useful.

Folder Lock without any S/W :

Open Notepad and copy the below code and save as locker.bat. At first time start it will create folder with Locker automatically for u. DON'T FORGET TO CHANGE YOUR PASSWORD IN THE CODE ITS SHOWN THE PLACE WHERE TO TYPE YOUR PASSWORD.
after creation of Locker folder again click on the locker.bat. It will ask.press Y then Locker folder will be disappeared.again to get it click on locker.bat. and give ur password u will get the folder again.

************************************************** ********
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=>(here i added the password)"
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
ghulamraza
Hi Siddhartha,
Do not type the password in the line
set/p "pass=>(here i added the password)"
Type your password within the inverted comma of the below line:
if NOT %pass%=="type your password here" goto FAIL
If you are knowledgeable about any fact, resource or experience related to this topic - please add your views. For articles and copyrighted material please only cite the original source link. Each contribution will make this page a resource useful for everyone. Join To Contribute