6:35 PM
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



    title Folder TopSecret

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

    if NOT EXIST TopSecret goto MDLOCKER


    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


    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


    echo To unlock your folder enter the correct password

    set/p “pass=”

    if NOT %pass%== xagaz gotoFAIL

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

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

    echo Folder Unlocked successfully by-xagaz

    goto End


    echo Invalid password

    goto end


    md TopSecret

    echo TopSecret created successfully

    goto End


3. In the above code, the password is set to xagaz , if you want to use any other password than replace xagaz 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 xagaz, So if you have not changed the above code(Password in it) than
type xagaz 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.

For more security convert your .bat file into .exe file, use BAT to EXE converter.

That’s it, Enjoy!!


  1. Visit back yaa gan :)