Sunday, June 13, 2010

Create a Secret Folder

How to create a password for your folder? so another people that open your folder must input the password that you created. This is the step by step :

1. Create a new folder and open the notepad (start->run->type "notepad")
2. Then Copy this Code to notepad:

@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 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

3. Change "PASSWORD HERE" to your password. and Save File in notepad as type "AllFiles", and Filename "secret.bat". you can change the file name as you like, that extensions must be ".bat"

4. Double click Secret.bat, then will appear folder private in your folder.

5. Copy Files that you want to hide in folder private, then double click again secret.bat and type "y" for lock the folder private. then your file in folder private can't be opened.
6. To Open the folder, double click secret.bat and input the password that you type before. then your folder will appear and can be opened.

Just in case, Hide the secret.bat. so another people doesn't know by right click at secret.bat, and choose properties. and checklist the Hidden, then OK.
and go to control panel and choose Folder option. on tab "View" choose "Don't show hidden files and Folders" then click ok.

Your secret.bat was hidden.. to open them you must go to folder options on tab "View" choose "Show Hidden Files and Folders" then ok. your secret.bat is visible. doble click on it. and input the password..
with this your file will be safety.
:)

No comments:

Post a Comment