Você está na página 1de 2

If you're new here, you may want to subscribe to my RSS feed or get daily update

s via E-mail. Thanks for visiting!


Each one of us must have tried many softwares for locking their private files an
d folders. Few must have bought a licensed copy of one while others are better o
f using a free version. However, you can achieve the same level of privacy witho
ut any software. This tutorial will make things crystal clear of what I am tryin
g to say.
Few months back, Madhur had written a similar article on locking folders without
any software but this article is a step forward to what he has described at tha
t time. The trick which I am going to tell here will make a virtual folder by th
e name Locker where you can put as many files and folders you want and after locki
ng, this Locker folder will disappear.

Here is step-by-step guide to achieve that.


1. Copy the following code in italics:-
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%==type your password here 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
2. Paste the above code in notepad or create a new text document by right clicki
ng on your desktop and selecting New->Text Document.
3. Replace type your password here with your password in the code you just pasted
on the notepad. DON T FORGET THIS.
4. Save the above file as BATCH file (by extension .bat). Choose any filename bu
t make sure that it ends with .bat
(Open My Computer. Goto Tools- >Folder Options->View. Scroll down and UNCHECK Hi
de extensions for known file types. Now rename your file with .bat extension)
5. Now you can see a MS-DOS BATCH file you just created. See the picture below:-

6. Double click on it to create a new folder named Locker .


7. Now put all files and folders you want to protect in to this new folder Locker .
8. Double click that BATCH file again to lock the folder Locker . It will disappear
as soon as it gets locked.
9. If you want to unlock that folder, double click the BATCH file again. You wil
l be prompted for the password, enter the correct password and that folder Locker
will then be appear which is easily accessible by you.

Você também pode gostar