Make a secret folder

How to make a secret folder in your computer.

Do you want a secret folder in your pc that asks password when opened ?Do you want your secret files or any photos should not be visible to others?OR any other reasons to make a secret folder in your pc.You can do this with softwares but here I will tell you how to make a secret folder in your computer(without any sotware).

1.First step would be opening the notepad.
2.Copy the given below code and paste it into the notepad or any text editor.

cls 
@ECHO OFF 
title Folder Locker 
if EXIST "HTG Locker" goto UNLOCK 
if NOT EXIST Locker 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 Locker "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 goto FAIL 
attrib -h -s "HTG Locker" 
ren "HTG Locker" Locker
echo Folder Unlocked successfully 
goto End 
:FAIL 
echo Invalid password 
goto end 
:MDLOCKER 
md Locker
echo Locker created successfully 
goto End 

:End

3.To change the name of secret folder change all  'Locker' word with your desired folder name.

4.To change the password of secret folder change the 'Password' word with your desired password.

5.Save the file with any name but extension should be .bat.
Example:-locker.bat

6.Now the 'Locker' named batch file is created.

7.You can now delete the original text file.

=>To open the folder double-click on the locker batch file.

=>to hide the folder again double click on the locker batch file and when the batch file is opened click 'Y'  to lock the folder and if you don't want to lock it click 'N'.

Immediately after you lock the folder the folder gets disappeared .

What if you forget your password?


No comments:

Post a Comment