Loading...

How to create password protected document locker in windows



How to create password protected document locker in windows
We  have some important files and folders on our PC. We don’t want these files and folders to be seen by others. It becomes more important when you share the computer with others. This can be done very easily following the procedure given below. I am using Windows 10 Pro but it works on other windows editions also-
Password protected document locker
Password protected document locker

Create a folder on your desk top.

To create the folder right click on your desk top

Hover over new

Click on folder.

Give a name to the new folder. For example name it as “Protection”.

Open the folder by double clicking the icon of the “Protection” folder.

Here you have to create a text file.

To open a new text document, right click your mouse, hover over “New” and choose “Text Document”
A new text document will be created.

Open it by double clicking on “New text document”

Here you have to paste the following code. Please copy and paste the code given below now.

cls
@ECHO OFF
title Document password
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%==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

Delete the text in red and write your password in place of it.( Your-Password-Here)

Now save the file. Please note that the File is to be saved as batch(.bat) file.

To save the file click on file in the menu and click ‘Save as…”.

Give name to the file, for example “Document password” and add the extension “.bat”

( Note-If you want to choose a different name, first replace this text “Document password” in the code with the name you want to give to the .bat file. This is in line number three on top of the code.)

Select all files from the menu in the bottom of the document and save it.

Now you have created a windows batch file. 

Now come back to your desk top.

Open the folder “Protection” by double clicking on it and then open the file “Document password” by double clicking.

Now you will see that a new folder named “Locker” has been created automatically. 

Open the “Locker” by double clicking it.

Cut and paste the documents you want to protect in locker.

How to lock the “Locker” folder

You have successfully created the “Locker” folder and transferred your sensitive files to it. now you have to lock it.

To lock it double click on the windows batch file “Document password”. Now a message like given below will appear.

“Are you sure you want to lock the folder Y/N”

Now type ‘Y’ and press enter.

The locker folder will be locked and disappear.

How to unlock the “Locker” folder

To unlock it double click on the windows batch file “Document password”. Now you will be prompted for the locker password like this.

“Enter password to open folder”

Please enter the locker password and press enter.

The folder will appear and open double clicking it.



Newer Post Older Post

7 comments:

  1. Usefull and Interesting post here.

    ReplyDelete
  2. Great information on password protected document locker in windows. Thanks for this.

    ReplyDelete
  3. Bahut hi badiya post hea. Pr isme bhi coding ka kaam hea. Jo mere liye aasan nhi hea.

    ReplyDelete
  4. Very useful information . thanks a lot of sharing such nice information.

    ReplyDelete
  5. It is very useful specially if your computer is used by others too.

    ReplyDelete
  6. If you think that your computer is shared by many people, this is a best and easiest option for you.

    ReplyDelete
  7. The create password protected document locker in windows is very useful and the author has simplified it.

    ReplyDelete

 
Toggle Footer
TOP