SensorsTechForum - How to Technology and PC Security Forum

Popular Topics => PC Tips & Tricks => Topic started by: never on January 29, 2016, 06:09:43 pm

Title: How To Lock Your Folder In Windows and Hide It
Post by: never on January 29, 2016, 06:09:43 pm
Hello,

Ever had those situations where you just need to conceal your files from others snooping around on your computer? Well, worry no more, because we provide you with simple instructions on how to keep your files hidden in plain sight:

Step 1: Create a new folder and name it something simple that you can remember but that does not reveal that you will hide your data there.
Step 2: Open the folder and in it, make a New Text Document after which open it.
Step 3: Copy and paste the following script provided by SimpleHelp.com in your text document:

cls
@ECHO OFF
title Folder Private
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" 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 "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%== PASSWORD_GOES_HERE goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End


Step 4: To set your password edit the PASSWORD_GOES_HERE field above in this line, for example if your password is 1111 it should be:

if NOT %pass%== 1111 goto FAIL

Step 5: To save your file go to the top left corner of the text document and click on File>Save As... after which choose All Files and name the file with a .bat extension, for example hideme.bat

Step 6: Open the file after saving it in the created folder. It will close and create a folder, called Private.

Step 7: Put your data in the private folder and then open the .bat file one more time, after which type "Y" and the private folder will hide.

To unhide the folder simply go there again and open the .bat file after which type your password and press Enter. You can do this anywhere you wish - even on your desktop, but we recommend hiding it somewhere where no one would look for it, like in a folder in Program Files, for example.

Have fun and don't use this for sinister deeds!