Fed up of your family members intruding in your personal space, specially on your computer or laptops. If this is so then it can be solved, you can add a private password to a custom folder without using any extra locking software just follow the simple steps as here:
Create a Normal Folder:
- Create a Folder with any name anywhere as per your need, for eg. you name it, 'Howtix'.
- This folder will be used to make a sub folder inside it, which you want password protect.
Create a New Text File:
- Now create a new text file inside previously created folder, 'Howtix'.
- Open the text file and paste following code into it-cls
@ECHO OFF
title Folder Private
if EXIST "HTG Locker" goto UNLOCK
if NOT EXIST Private goto MDLOCKER
:CONFIRM
you sure you want to lock the folder(Y/N)
set/p "c
echo Are
ho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
lid choice.
goto CON
if %cho%==n goto END
if %cho%==N goto END
echo Inv
aFIRM
:LOCK
ren Private "HTG Locker"
attrib +h +s "HTG Locker"
ck folder
set/p "p
echo Folder locked
goto End
:UNLOCK
echo Enter password to unl
oass=>"
if NOT %pass%== PASSWORD_GOES_HERE goto FAIL
attrib -h -s "HTG Locker"
Invalid password
goto en
ren "HTG Locker" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo
d
:MDLOCKER
md Private
echo Private created successfully
goto End
:End
- Now enter your custom password b replacing your password with, "PASSWORD_GOES_HERE".
- Save your file as, "Lock.bat" (batch file).
- Note that don't change file type '.Bat'.
- Now you can delete original text file.
Run Batch File:
- Run the batch file,'Lock.bat'.
- It will create a folder naming Private, it is your required folder.
Add Your Private Files:
- Add your private files to folder,'Private".
- After completing adding, run again,'Lock.bat' file.
- Your folder will now be locked & invisible.
How to unlock:
- Run,'Lock.Bat'
- You will be prompted for password.
- Enter your password, Folder will be unlocked.
Post a Comment