Lock Folder without using any Software

Saturday, November 27, 2010


How to lock a Folder without using any Software? People generally use folder lock software to hide or lock confidential data from others. But why use those softwares, however you can protect/lock those data without using any software. Here I am going to tell you two methods through which you can hide or lock folders in order to protect your confidential data from others. Follow the guidelines from bellow.
Lock Folder Without Software

Lock Folder without using any Software (Method 1):

  • Make a new Folder
  • Inside Folder make a (TXT) file and copy the following code inside it
Quote: cls
@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%== password 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
  • Now go the line ( 23 ), You will find this word : password here (Change it with ) any password u like
Lock Folder Without Software
  • After that, Save the (TXT) file as (locker.bat)
  • Now back to the folder and you will find a ( LOCKER ) commanding
  • Now Click on it
  • After clicking on it you will see a new folder (Private )
  • Now copy the files, which you want to hide or protect
  • After that again go to ( LOCKER ) and click on it
  • It will open and ask you want lock your folder? Y/N ?
  • Type ‘Y’
  • And that is it, you have simply done
  • Now to view or unlock it again, Click on ( LOCKER ) and type your password

Lock Folder without using any Software (Method 2):

Note: For this you should have folder in NTFS drive
  • Open run
  • Type cmd
  • Now type – cacls e:\(name of the folder in drive e) /d everyone For Locking Folder
  • For unlocking type – cacls e:\(name of the folder in drive e) /g everyone:f
Once you have locked the Folder, whenever someone wants to open it, it will show a message ‘access is denied
Well, This is how you can lock or protect your valuable data from others without using any software or programs. Stay tuned with us for more updates like this.

0 comments: