hey guys u might have learned the trick to lock folders by creating two batch files.
But this trick is slightly modified so that u can even assign a password to the perticular folder which you want ๐Ÿ™‚

1) First of all copy the following code in notepad


title Folder Locker
if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303

09D}” goto UNLOCK
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.
ren Locker “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
attrib +h +s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
echo Folder locked
goto End
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
echo Invalid password
goto end
md Locker
echo Locker created successfully
goto End
2) Now you can see “type your password here” in the code (23rd line) . Delete that and type in your password there.
3) save this file with any name and extension ( .bat)
4) Now double click the batch file. It will create a folder named “Locker”
5) Put all the files u want to lock in that folder
6) Now double click on the batch file to lock the folder.
7) Now if you want to unlock the folder double click that batch file again and you will be prompted for password!!!!!!!!
Enjoyeeeee ๐Ÿ™‚
Kuntal(Sr. System Administrator)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: