Creating Password Protected Hidden Folder without Additional Software (Windows)

We all have valuable data which we like to protect and hide from the eyes of others working on the same PC. There are many ways of this like hiding it from folder options or creating user permissions or using some file safe software. My method is pretty straightforward and does not involve any of the following methods listed above. The main advantage of this trick is that when the folder is locked then there is no way to access this folder without unlocking it.Content in it does not show up in any kind of search while locked.

I came across a script quite a long time back which does the above mentioned task by creating a folder named locker. Running the script when the folder is visible will lock the folder and make it non existent. Running the script when the folder is hidden will unlock the folder if provided with the correct password. The script is as follows.



cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u 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 "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 folder
set/p "pass=>"
if NOT %pass%== "Your password" goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End

Copy this script and paste it in notepad. Change the phrase "Your password" with the desired password without the quotes. Save the file as "anyname".bat . I recommend you to change the name with something sophisticated like win3xshell.bat and put it somewhere in windows folder so that it is very difficult to locate without the name. Your folder will be created in the same directory of the script created above. This script is the only way of accessing the folder. If you loose this script then repeat the above procedure of creating the script in the same directory as the previous one and you could gain access to the folder once again without any data loss. 

0 comments:

Post a Comment