Sunday, February 5, 2012

How To Lock Or Hide A Folder

These days, hiding or locking a folder or file is probably something you will need if you use a computer that others use too. 

1- You have to copy this code on the note book:

cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020- 3AEA-1069- A2DD-08002B30309 D}" 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-08002B30309 D}"
attrib +h +s "Control Panel.{21EC2020- 3AEA-1069- A2DD-08002B30309 D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%== type your password here goto FAIL
attrib -h -s "Control Panel.{21EC2020- 3AEA-1069- A2DD-08002B30309 D}"
ren "Control Panel.{21EC2020- 3AEA-1069- A2DD-08002B30309 D}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End


 2- Without changing anything on the note book, type the password in the place of ……type your password here

After deleting this sentence that is written in the red color above

3- Save the file by the name locker.bat 

4- Open the file locker.bat 

5- Put all the wanted files that you want to lock and hide them into this folder


Once again another dos window will appear saying (Are you sure ?) Type the letter Y. Then, Enter and it will simply disappear

If you wanted to open the folder. Just double click on the file locker.bat the dos window will open. Type down the password then the folder appear again.
 

0 comments:

Post a Comment