Here i will teach how to hide a folder on your computer without using any software. This can prevent other people from seeing and deleting your secret files. Also read How to remove shortcut virus from your external disk drive.
How to Password Protect a Folder on your Computer
Step 1
Create a folder and name it. Inside the folder, create a notepad, copy and paste the following code below in the notepad
Step 1
Create a folder and name it. Inside the folder, create a notepad, copy and paste the following code below in the notepad
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%== ENTER PASSWORD 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
Step 2
Change the text ENTER PASSWORD HERE in the code above and replace it with your password
Change the text ENTER PASSWORD HERE in the code above and replace it with your password
Step 3
Save the notepad with a .bat extension. That is for example namefolder.bat use any name you feel like but make sure it is save with a .bat extension. It will now generate another file name locker.
Step 3
Now delete the notepad your created leaving the .bat file inside the folder.
Step 4
Double click on the .bat file and a folder named Private will be created
Inside this folder you can now copy and paste all the files and folders you want to hide.
Step 5
After pasting your files, double click on the .bat file and this will prompt you to lock the folder. Type Y to lock it or type N to unlock it and hit enter.
After pasting your files, double click on the .bat file and this will prompt you to lock the folder. Type Y to lock it or type N to unlock it and hit enter.
Step 6
When you choose Y and hit enter, you have lock the folder. When you want to open the folder, double click on the bat file again, you will get this dialog box below.
Step 7
Just enter your password and hit enter
Just enter your password and hit enter
The locker folder will reveal all the contents in it and you can also add more files and folders which you want to hide.
You should also try to name this folder with a unique name that will disguise it and make anybody think it is not useful. This is because some tech gurus can still reveal all your hidden files if they suspect that you are hiding something. You should read my post on how to remove shortcut virus from your flash drive.
I hope this info helps? feel free to share this post with your friends using the like/share buttons. you can also subscribe to my blog below for more tips delivered to your inbox. Thank you.
You should also try to name this folder with a unique name that will disguise it and make anybody think it is not useful. This is because some tech gurus can still reveal all your hidden files if they suspect that you are hiding something. You should read my post on how to remove shortcut virus from your flash drive.
I hope this info helps? feel free to share this post with your friends using the like/share buttons. you can also subscribe to my blog below for more tips delivered to your inbox. Thank you.
No comments:
Post a Comment