Wednesday, February 04, 2009

Hide And Lock Your Folders With Noptepad

4


Thanx to Waqas Rafi for giving the idea. Now we can hide and lock our private files simply. Just by applying the code to into a notepad file and than saving it as a batch file ( .bat extension ) really makes it safe.


Ms Dos Application Command

Copy and paste the following code in notepad and save as YOUR-FILE-NAME.bat

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 Do You Want To Lock This 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 ( Y=yes , N=no ).
goto CONFIRM
:LOCK
ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo This Folder Is Locked
goto End
:UNLOCK
echo Enter Password
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 Unlocked
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End

Locking The Folder

1. Enter your password in place of YOUR-PASSWORD field and save the file.

2. Double click the folder and it will automatically make a new folder.

3. Than Put your files in that folder.

4. Click the batch file again.

5. It will ask your confirmation to lock the folder.

6. Press Y or y For Yes or N or n For No.

This will actually hide the folder which cannot be seen or searched even turnining on the search hidden files option in the search. So your files will be completely inaccessible.

Unlocking The Folder

Now when you want to unlock it simply double click the batch file. Enter your password and the folder will visible to you.

Be creative and think that how to make it even more protected. Like putting it in a hidden file and than that file to be in a hidden place.


4 comments:

Works Great !

This IS AWESOME ..

Thanx A Lot..

if you turn on the see system files then you can see the file. You have created a system file of the existing foulder. nice idea. but works only in windows not in mac or linux

great work.. even thou there are lots of programs available now.. but really handy way to go free.

Post a Comment