No need to install any software, this is the way to protect your folders

in security •  7 years ago  (edited)

 No need to install any software, this is the way to protect your folders


1. Create a password for protecting your folder:

There are many methods that you can use to create password protect important folders on your system. However, most of these methods must need on the support of the third software. I instruct you to do the following:

Before you start you must create a folder to store the protected directory. To do this you just need to create a directory in the usual way and set any name.

Open that folder and create a new text document by right-clicking on any empty space in the folder, and select New => Text Document.

Open the file Text Document you just created, copy and paste the code below into:

-------------------------------------------------------------------------

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%== PASSWORD_GOES_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"

-----------------------------------------------------------------------

Note: In the code above, replace PASSWORD_GOES_HERE with the password you want to set. Finally save this file back to locker.bat file.

Now you can delete the original text file.

Next double click on the locker.bat file to open the file. Now it will create a new folder called Private. This Private Folder is where you can store all your important files, folders ...

After moving the required data to Private, double click on locker.bat. Immediately a dialog will appear asking if you agree to hide this folder, just enter "Y" and press ENTER.

After completed, Private will disappear.

If you want to access the Private folder, double click on the locker.bat file and proceed to enter the password what you have set before and press ENTER

2. If accidentally forget the password:

If you accidentally lost your password or if you want to change your password, you have to do is right-click the locker.bat file and select Edit and proceed to change your password.

After reading this tutorial I hope everyone will know how to secure your documents


Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

funny