Create password protected folders without using a software
We are going to create a folder and password protect it, without using a software.Follow the steps on how to build it.
1)Copy paste the code given below to a notepad file.
cls@ECHO OFFtitle Folder Locker if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK if NOT EXIST Locker goto MDLOCKER :CONFIRM echo Do you want 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 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 your password to Unlock Folder set/p "pass=" if NOT %pass%==Enter 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
2)Edit the “Enter your password here” section with your desired password.
3)Now save this notepad file using .bat extension. You can save the file using any name. I did it with the filename as locker.bat .
4)Double click on this locker.bat file.You can see that a folder named “Locker” is created.
5)Copy the files to hide, to this folder.
6)After copying,click on the locker.bat file again.Now a command window will be opened ,asking
“Do you want to Lock this folder(Y/N)”
7)Type Y and then press Enter to lock the folder.Now the folder is hidden.
8}If you want to open and see the contents of this folder again double click on the locker.bat file. A command window will be opened ,asking
“Enter your password to Unlock Folder”.
9)Type your password here and press enter.Then the hidden “Locker” folder will be visible to you.