Home Tricks Password Protect Folders in Windows Without any Software

    Password Protect Folders in Windows Without any Software

    There are hundreds or maybe thousands of third-party software available on the internet for protecting Files and Folders in Windows with Password, but the main problem with them is that first we need to download them and after that, we need to install them and they even corrupts or deletes our files when we uninstalled them.

    So, today I am sharing this amazing trick with notepad through which you can Password Protect any Folder in Windows PC and you can even use this as a portable locker.

    How to Password Protect any Folder in Windows?

    This method works on every version of windows including Windows 8.1 and XP and will also gonna work on Windows 9.

    Step 1:- Firstly Create a new folder that will include your Password Protected Folder, in my case i Created a new folder on the desktop and named it “My Files”.

    Step 2:- Now open Notepad and paste the below code in it.

    title Folder Private
    if EXIST “HTG Locker” goto UNLOCK
    if NOT EXIST Private goto MDLOCKER
    echo For More Tricks and Hacks visit www.TheBroodle.Com
    echo Are you sure you 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.
    goto CONFIRM
    ren Private “HTG Locker”
    attrib +h +s “HTG Locker”
    echo Folder locked
    goto End

    echo Enter password to unlock folder
    set/p “pass=>”
    if NOT %pass%== PASSWORD_GOES-HERE goto FAIL
    attrib -h -s “HTG Locker”
    ren “HTG Locker” Private
    echo Folder Unlocked successfully
    goto End
    echo Invalid password
    goto end
    md Private
    echo Private created successfully
    goto End

    Password Protect Folders in Windows With Notepad Script
    Password Protect Folders in Windows With Notepad Script

    Step 3 :-
    Next Change the “PASSWORD_GOES_HERE” from the above code with your desired password.

    Step 4 :- Now Save the notepad file as “locker.bat” in the folder you created (You will need to select “All Files” in Notepad’s saving window in order to save the file as .bat file instead of .txt)

    Step 5 :- Now double click on the “locker.bat“, it will create a folder named “Private” in your Folder.

    Step 6 :- Now Paste those files and folders that you want to be protected in “Private” folder.

    Step 7 :- After pasting all files and folders double click on “locker.bat” now this time it will ask for the permission that you want to lock the folder, type “y” and hit enter.

    Lock Folders in Windows With Password withot any software
    Lock Folders in Windows With Password withot any software

    Step 8 :- That’s it, now you will see that the Private folder disappears, now if you want to unlock it just double click on locker.bat and type your password and hit enter.

    That’s it, you can use this method to lock any amount of files and folders.

    Do share your feed backs and queries in comments.

    Editor's Pick

    10 Efficient Link Building Tactics for Ecommerce Stores

    Good organic ranking in search engines is essential for any eCommerce business, and link building is a powerful method to achieve it....

    11 Best Video Presentation Softwares To Up Your Presentation Game

    Have you got a major presentation coming up? Wish to attract the attention of your audience? The best way to ensure that...

    Top 3 Cameras For Recording Podcasts in 2020

    Video podcasting is a new and effective way of sharing, and airing your opinions. The platform gives a wide range of advantages...

    9 Benefits of Using WordPress for Your Business Website

    Since its inception back in 2003, WordPress has become one of the most sought after blogging platforms in the market. Over the last couple...

    Headless WordPress- Designing WordPress Site Without a Theme

    Wordpress has always been the go-to solution for most businesses that look out for a digital presence. The leading CMS platform excels...
    Password Protect Folders in Windows Without any Software 2
    Maitreya Patni
    Maitreya is the Founder and Chief Editor at Broodle. He loves helping people around him to get through the day to day trouble they face with technology. So that, they can love technology as much as he does!
    Notify of
    Inline Feedbacks
    View all comments
    Would love your thoughts, please comment.x