Saturday

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.


Read : You can try this method to lock your folders


cls 
@ECHO OFF 
title Folder Private 
if EXIST "HTG Locker" goto UNLOCK 
if NOT EXIST Private goto MDLOCKER 
:CONFIRM 
echo Are you sure you 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 Private "HTG Locker" 
attrib +h +s "HTG Locker" 
echo Folder locked 
goto End 
:UNLOCK 
echo Enter password to unlock folder 
set/p "pass=>" 
if NOT %pass%== type password here goto FAIL 
attrib -h -s "HTG Locker" 
ren "HTG Locker" Private 
echo Folder Unlocked successfully 
goto End 
:FAIL 
echo Invalid password 
goto end 
:MDLOCKER 
md Private 
echo Private created successfully 
goto End 
:End



Change
type password here to the password you want to set.



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 private, 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.





You will see that your private folder disappears.

Step 7. Open the name.bat file, it will ask you password.





If you type the correct password, it will show your folder but you type incorrect password, it will not show you folder. Now you know to create password protected folder.




No comments:

Post a Comment