More
    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.

    cls
    @ECHO OFF
    title Folder Private
    if EXIST “HTG Locker” goto UNLOCK
    if NOT EXIST Private goto MDLOCKER
    :CONFIRM
    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
    :LOCK
    ren Private “HTG Locker”
    attrib +h +s “HTG Locker”
    echo Folder locked
    goto End

    :UNLOCK
    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
    :FAIL
    echo Invalid password
    goto end
    :MDLOCKER
    md Private
    echo Private created successfully
    goto End
    :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

    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...

    AMP for Emails: Tips and Tricks You Should Know

    AMP 4 Email is undoubtedly the number one email marketing trend since spring 2019 and the most discussed topic in this sphere respectively. Tons...

    Top 7 Most Comfortable On-ear Headphones in 2020

    Treblab on-ear headphones are mainstream audio electronics amongst athletes of any level. From beginners to A-class sportsmen - everyone can find here...

    What’s the Difference Between Intel I5 and Intel I7 – Which One to Buy?

    For buyers that are planning to invest on a new laptop, or desktop computer, the most complicated thing to decide is which...
    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!

    Leave a Reply

    avatar
      Subscribe  
    Notify of