Monday, 21 April 2014

Password Protect Folder Without Any Software

Posted by Unknown
In this post will be illustrating a simple trick to "password protect folder", "lock folder", " hide folder" and "lock and hide folder" without using any software.This trick will work on all windows platforms. Follow the below tutorial to learn this trick.

Steps to Password Protect Folder Without Any Software:

  • Open Notepad and copy the following code(below code)
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
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.
ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==droidreflex 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
echo Invalid password
goto end
md Locker
echo Locker created successfully
goto End
  • Save the file as "lock.bat". (Once you create a document by default you will get the name as New Text Document, After copying the above code then go to File then click Save As then enter "lock.bat" as shown below. Make sure you type "lock.bat" as it is including the quotes).
Click on image to Enlarge 
  • After saving double click on "lock" file, it will create a folder by name "Locker".
  • Place the files you want to hide in the created folder (Locker Folder)
  • After copying data in the Locker folder again double click on "lock" file and then press Y
  • Now the folder is hidden !!!
  • To un-hide the file , double click on "lock" file and enter the password. Default password is droidreflex
  • Change the password by replacing droidreflex word with the desired password in above code (in lock file).
  • Delete the New Text Document.
You can also delete the lock.bat file by bookmarking this web page and creating the lock.bat file when ever you want to access the locked and hidden files.

1 comment: