How to Password Protect Folder or File 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 protecta document or folder

For this we need to create a folder on your desk top, Drive C, D, or wherever you want. I explain here assuming as if we want to create the folder on the desktop.


To create the folder right click on your desk top

Hover over new

Click on folder.

Give a name to the new folder. 

Note- The code below is designed to name the folder as Folder Locker. If you want to give the name of your choice, please replace the word Folder Locker. In line no. 3 of the code.

For now I am assuming that you want to name the folder as Folder Locker.

For example name it as Folder Locker.

Open the folder by double clicking the icon of the “Folder Locker” 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 in ntepad.

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 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=>"
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

Now you see that some of the text is in red color in bold letters. Please 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 as batch(.bat) file click on file in the menu and click ‘Save as…”.

 Give name to the file, for example “Folder Locker” and add the extension “.bat”

 You may like to read on -  How to verify your blog or website ownershipusing CName records with Google webmaster




( Note-If you want to choose a different name, first replace this text “Folder Locker” 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 “Folder Locker” by double clicking on it and then open the file “Folder Locker” 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.

 


You may like to read on -  Download facebook profile, Activities logs Oreverything and save to your Harddisk




How to lock the “Locker” folder


You have successfully created the “Folder 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 “Folder Locker”. 

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.

 

( Note-If you want that a different message should appear, please replace this text “Are you sure you want to lock the folder Y/N” in the code with the text you want to appear as a message while locking the locker.)


How to unlock the “Lockerfolder


To unlock it double click on the windows batch file “Folder Locker”. 

 

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.

 


how to password protect a pdf, how to password protect a file, how to password protect a zip file, password protect folder software, can you put a password on a folder, how to password protect a folder windows, How do you password protect a document, How do I make a folder password protected, Can I put a password on My Documents folder, How do I password protect a file in Windows, how to put a password on a folder windows without software

 


Special requestPlease let us know through a comment that how our effort was. Do not hesitate to give an dverse opinion, give your opinion impartially. Please subscribe to our blog and like our Facebook page. Subscribe to our YouTube channel “Start with Wikigreen”. Please share it to your friends and beloveds.
 

7 टिप्पणियाँ

Please Donot spam

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

    जवाब देंहटाएं
  2. Bahut hi badiya post hea. Pr isme bhi coding ka kaam hea. Jo mere liye aasan nhi hea.

    जवाब देंहटाएं
  3. Very useful information . thanks a lot of sharing such nice information.

    जवाब देंहटाएं
  4. It is very useful specially if your computer is used by others too.

    जवाब देंहटाएं
  5. If you think that your computer is shared by many people, this is a best and easiest option for you.

    जवाब देंहटाएं
  6. The create password protected document locker in windows is very useful and the author has simplified it.

    जवाब देंहटाएं
और नया पुराने