In this post I'm going to tell you that how you can set password on personal files. Here is a step by step guide to do it. The ...
- The first thing that you have to do is that you have to open Note Pad.
- Paste the following code in the Note Pad
- Replace PASSWORD_GOES_HERE with the password which you want to set on your folder
cls
@ECHO OFF
title coolhacking-tricks.blogspot.com
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST MyFolder goto MDMyFolder
:CONFIRM
echo Are you sure 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 MyFolder "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 password to Unlock Your Secure Folder
set/p "pass=>"
if NOT %pass%== PASSWORD_GOES_HERE goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" MyFolder
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDMyFolder
md MyFolder
echo MyFolder created successfully
goto End
:End
- Save the Note Pad file as lock.bat (.bat is must)
- Now, double click on lock.bat, a new folder will be created with name "My Folder"
- Copy all data that you want to protect, in "My Folder"
- If you want to hide "My Folder", double click on "lock.bat" and then press y in the command prompt and then press enter key.
- Now "My Folder" will be disappeared, to access that folder double click on lock.bat and then enter password and then press enter key.
- After entering the password, "My Folder" will be appeared.
COMMENTS