There are a lot of software that you can use to create a password protected folder. But you don’t want to use some third party software. Don’t worry I’ll tell you a very simple method. Using this simple method you can hide your folders quickly with batch script.
Create Your Password Protected Folder
Step 1: Open the notepad ,and paste the following code:
title Folder Private
if EXIST “HTG Locker” goto UNLOCK
if NOT EXIST Private goto MDLOCKER
echo Are you sure you want to lock the folder(Y/N)
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
ren Private “HTG Locker”
attrib +h +s “HTG Locker”
echo Folder locked
echo Enter password to unlock folder
if NOT %pass%== TYPE YOUR PASSWORD goto FAIL
attrib -h -s “HTG Locker”
ren “HTG Locker” Private
echo Folder Unlocked successfully
echo Invalid password
echo Private created successfully
Step 2: Change the TYPE YOUR PASSWORD text to the password you want to set. Now go ahead and save the file as hackingeveryday.bat.
Step 3: Now run your batch file by double clicking on it–the first time you run it, it will create a folder called Private. This is where you can store all your secret things. When you have finished adding all your stuff to the Private folder, run hackingeveryday.bat again.
Step 4: Now double click bat fine, this time you will be asked if you sure that you want to lock the folder, press the “Y” key and hit enter to lock your folder.
You will see that your Private folder quickly disappears.
Step 5: If you click again the bat file, you will prompted for a password. If you enter the same password as you set in the script the Private folder will reappear if you enter the incorrect password the script will just Terminate.