Sunday

How to Create a Password Protected Folder without any Software




There are a lot of methods that you can use to create a password protected folder, most of which require the use of some third party software. Using the below method you can hide your folders using a batch file.



Create a password protected folder


Step 1. Open Notepad.

Step 2. Paste the following code in notepad.


cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST secured goto MDLOCKER
:CONFIRM
echo Are you sure u want to Lock the secured(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 secured "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s +r +i "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo secured locked
goto End
:UNLOCK
echo put in the key to Unlock the lock
set/p "pass=>password"
if NOT %pass%==your password goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" secured
echo secured Unlocked
goto End
:FAIL
echo Invalid keyword
goto UNLOCK
:MDLOCKER
md Secured
echo lock unlocked
goto End
:End



Change
your password to the password you want to set.



Read : How to create matrix raining code using command prompt



Step 3. Save the file as name.bat.

You can replace name with the name you want.




Step 4. Open the file.



Step 5. When you will open the file, it will create a folder called secured, you can store data here to protect.

Step 6. Open the name.bat file. It will ask you, Are you sure you want to lock the folder ? If you sure, press y and press enter to lock your folder.





Step 7. You will see that your folder has changed like below.





Step 8. To show your data, open the name.bat file, it will ask you password.



If you type the correct password, it will change your folder to secured and you can see your data but you type incorrect password, it will not show your folder. Now you know to create password protected folder.


No comments:

Post a Comment