border: 1px solid #d2d2d2; padding: 0px 8px 0px 8px; color: #a19999; font-size: 12px; height: 25px; width: 165px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; margin:0px; } .submitbutton{ background:#F66303; border: 1px solid #F66303; text-shadow: 1px 1px 1px #333; box-shadow: 3px 3px 3px #666; font:bold 12px Arial, sans-serif; color: #fff; height: 25px; padding: 0 12px 0 12px; margin: 0 0 0 5px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; cursor:pointer;}

Receive all updates via Facebook. Just Click the Like Button Below

You can also receive Free Email Updates:

Powered By Blogger Widgets

Related Posts Plugin for WordPress, Blogger...

Sunday, April 24, 2011

Lock Folders Using Notepad

How To Lock A Folder Using Notepad
Have you ever wondered if it is possible to Lock Folder using Notepad?

Well yes it is possible to Lock Folder Without Any Software. This method works fine in Xp/Vista and hopefully upper versions of windows.

Please don't use this method if you are unsure what you are doing, I am not responsible for any damage caused by use of this, though it won't occur if you follow my steps correctly.

Here we start:

Open Notepad from your Start -> All Programs -> Accessories -> Notepad
Step 1. Copy and Paste the below code in Notepad and Save it as FolderLock.bat
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" 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
Now save this notepad file as FolderLock.bat
Step 2 :- Now Double Click that new Batch file named FolderLock and it will make a new folder named Locker in the same location:

[Image: folderlock2.jpg]
Now put the Data Inside the folder Locker and again Double Click the Batch file to Lock it, this will give you a prompt, just Type y and press Enter: , File get locked

Now keep the Batch File named FolderLock.bat in a different place like your USB Pen Drive so that only you can access the Folder you have locked.

To Unlock the Folder just double click the Batch file again and type y and press Enter.

No comments:

Post a Comment


Twitter Delicious Facebook Digg Stumbleupon Favorites More