Thursday 15 September 2016

How to create password protected folder without any software.

Step 1. Open Notepad. Copy the below code and paste it into the notepad.
Note: You can change the password with your desired one you just need to edit this line “if NOT %pass%== PASSWORD goto FAIL” . You can replace “PASSWORD” with your password.

cls
@ECHO OFF
title Folder Private
if EXIST “PRO HACKER 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 “PRO HACKER LOCKER”
attrib +h +s “PRO HACKER LOCKER”
echo Folder locked
goto End
:UNLOCK
echo Enter password to unlock folder
set/p “pass=>”
if NOT %pass%== PROPHETHACKER goto FAIL
attrib -h -s “PRO HACKER LOCKER”
ren “PRO HACKER LOCKER” Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End
Submit

Step 2. Now save it as Locker.bat.
Step 3. Now run the Locker.bat at the saved location now a folder named “Private” will be automatically created in that directory.

Step 4. Now place your files which you want to protect in the “Private” folder. Now again double click the Locker.bat file and it will ask you “Are you sure you want to lock the folder(Y/N)”.

Step 5. Type Y and then press enter, Folder “Private” will then get hidden.

Step 6. Now again click on the Locker.bat file and it will ask you the unlock password and the password is PASSWORD.

That’s it! Your folder is now secured with the password every time you want to secure your files run the Locker.bat and place your files in the “Private” folder and again run Locker.bat file which will hide the folder “Private“.

This is one of the best tricks for securing your data without downloading any third party software in your PC. All you just need is a piece of code to protect your data.
So isn’t it cool? You can easily lock a folder in few clicks. Complete folder protection without any software. Let us know if you faced any issues during folder locking.

No comments:

Post a Comment