Wednesday, 1 April 2015

How to Lock folder using Notepad ?

Each and everyone of us have own privacy. We do not want to share or reveal some of our information to others. Same applies for us on Computers too, In computer Instead of Information We Just want to keep certain Data Secret.

Many of you Use certain programs and software to lock your Important data which is present it particular folder.
Today We will Teach you How to Lock a Folder through Notepad.

Yes Friends, its true. You can use Notepad to create a Password Protected folder and can keep all your Important Data Inside it.

To make your Very own Password Protected Folder, Follow the Given Steps:

1. Open Notepad
2. Copy and Paste Following code in NotePad


cls

@ECHO OFF

title Folder TopSecret

if EXIST "Control Panel.21EC2020-3AEA-1069-A2DD-08002B30309D" goto UNLOCK

if NOT EXIST TopSecret goto MDLOCKER

:CONFIRM

echo Are you sure 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.

goto CONFIRM

:LOCK

ren TopSecret "Control Panel.21EC2020-3AEA-1069-A2DD-08002B30309D"

attrib +h +s "Control Panel.21EC2020-3AEA-1069-A2DD-08002B30309D"

echo Folder successfully locked

goto End

:UNLOCK

echo To unlock your folder enter the correct password

set/p "pass="

if NOT %pass%== thetechdayfan gotoFAIL

attrib -h -s "Control Panel.21EC2020-3AEA-1069-A2DD-08002B30309D"

ren "Control Panel.21EC2020-3AEA-1069-A2DD-08002B30309D" TopSecret

echo Folder Unlocked successfully www.techday.in

goto End

:FAIL

echo Invalid password

goto end

:MDLOCKER

md TopSecret

echo TopSecret created successfully

goto End

:End


3. In the above code, the password is set to thetechdayfan , if you want to use any other password than replace thetechdayfan with password of your choice

4. Save the file as TheLocker.bat

5. Open the Folder where you have saved TheLocker.bat

6. Double click and Open TheLocker.bat

7. Now you will see that a Folder named TopSecret has automatically created

8. Now Copy and Paste all your Important Files in this Folder

9. To Lock this folder, Double-click and Open TheLocker.bat again. It will ask you that Do you want to lock this Folder, Press Y and Hit Enter. You will now observe that Folder has got vanished, don't worry it has been locked and your Data is safe.

10. To unlock the Folder, Double-click and run TheLocker.bat, It will ask you to enter Password.
In above code the password is set to thetechdayfan, So if you have not changed the above code(Password in it) than
type thetechdayfan and hit enter, If you have changed the password by editing above code,than type your very own selected password and hit enter. The Folder will appear again.
To Lock folder again, Follow step number 9, above.

That's it, Enjoy!!

Happy Computing !!

1 comment :

Unknown said...

I am using this method from a long time now. but lately I can't see the folder getting opened and it shows some error, even though I am entering the correct password the folder doesn't opena and i get an error which i can't even see because the command prompt closes immediately. Please help.