Folder lock with password & hide without any software

Folder lock with password & hide without any software

I shall tell you how to lock a folder with password without any software. Only you need to create a batch file. So follow the steps.

Open a Notepad. Copy the code below and paste it into notepad.

Save as the notepad as NAME.bat (E.g. Folder_lock.bat).

Keep the batch file (Folder_lock.bat) in any hard drive or on the desktop and double click on it. It will create a new folder locker at the same location.

Keep the files that you want to hide and also lock with password into the folder locker. If you want to unlock your files then double click on the batch file again and type Y (for yes). Here I set the password 12345. You can change the password by editing the batch file.

Here the batch file code :


cls
@ECHO OFF
title Folder LockerByDinesh
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%==12345 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 comments:

  1. This is a really usefull software.. This software is a use for a hide critical documents. Thnak you for share now i will use this software.
    Ayurvedic Pharmacies

    ReplyDelete
  2. I never knew a folder can be locked without using any software. This is really helpful. Loved the article.

    NFL Football Predictions

    ReplyDelete