Monday, December 26, 2011

How to Lock Folder Without Any Software

There are lot of ways to lock folders on computer. But in this article we going to showing you, how to lock folder without any software. it's very easy to protect your valuable folders and you can enhance your folder secure. In the earlier we mentioned, how to protect USB drive, that method is using USB Secure software. But in this tutorial no need to use any software. Just adding batch code in notepad.

How To Lock Folder Using Notepad

1. Open Notepad file.
2. Copy the below code and Paste it in notepad.

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%==123456789 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
In the above batch code we added password is 123456789and you can change that password.
3. Now save the notepad file as yourname.bat , (see below) 
4. Now a batch file will created in where you saved location.
5. Open that batch file, at the same time you will see Locker folder, 
6. Now store your personal files like pictures, videos, documents, etc... 
7. Once again open batch file to lock the stored file in folderNow press Y and press Enter.
8. Now your folder will be invisible and protected. but batch file be there.
When you want to unlock the folder, then again open batch file and enter your password   


Post a Comment