How to Create Password protected file or folder in PC - Tech Shuaib

Breaking

Ad Service

BANNER 728X90

Saturday, August 25, 2018

How to Create Password protected file or folder in PC

 How to Create Password protected file or folder in PC 

        In our computer there are many files which are confidential or important which we would like to keep secret, and we don't want to share with others. We want to keep it private and hide from other peoples who are using our computer. We can hide file or folders by keeping it as hidden files, but it is not perfectly secure because those are using our pc they can access these files by activating the option "show hidden folder" in folder setting option. So, we want to secure that file document with some password. By protecting with password only we can access that file or folder.
         We can secure with password by using some third party software. But in this blog, I will tell you how you lock any file or folder with password in your PC without using any third-party software.

 Note : 
        Just for safety, try it out once using a file that is not important, so you can make sure it works for you. Because if you do any mistake in locking process, you can loss your file. So, first only try it with non-important file. After that if all thing go well then you can try with the file which you want to secure.

 Follow these steps to lock folder with password :
1). Locate the drive/folder where you want to keep and secure.
2). Create a new text file.

3). Double Click the text file to open it.

4). Paste the below text in the new document.

Code :
cls
@ECHO OFF
title FolderLocker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST MyFolder goto MDMyFolder
:CONFIRM
echo Are you sure to lock this 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 MyFolder "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 Your Secure Folder
set/p "pass=>"
if NOT %pass%==YourPassword goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" MyFolder
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDMyFolder
md MyFolder
echo MyFolder created successfully
goto End
:End

You can download the code direct from here: Click Here
5). Find where it says "YourPassword" in the code.

6). Replace "YourPassword" with the password you want to lock the folder with.

7). Go to File Menu and Click on Save As.
8). Save the document with any name but the extension must be .bat as shown below.
      And then click on Save.
9). A new file will be generated with name "FolderLock" and extension ".bat".
10). Double Click on "FolderLocker" file.

11). A new folder with name "MyFolder" has been generated.
12). Open the "MyFolder" and keep your items which you want to protect.

13). Open the FolderLock file, because it's time to lock that folder up!

14). A new window will open. Type "Y" in the screen.

15). Press Enter key, and the "FolderLocker window" will disappear, along with "MyFolder" itself. Your secrets are safe.
16). Whenever you want to access those secret files, you can unlock the folder by double clicking on FolderLock to open it.
17). Enter the password you entered in step 6. And press Enter key.

The "MyFolder" folder is back. You can open it to find your hidden files. 
Repeat steps 13, 14 and 15 to lock the folder again.

If you have any doubts, you can view this Video in which I have explained practically.

Go to my YouTube channel and watch more interesting Technical Tips & Tricks videos free
Click Here : My YouTube Channel

No comments:

Post a Comment