Password Protect a Folder Without Any Third Party Software

I was always a cautious person who liked to keep my personal stuff safe and secure. I tried a bunch of third party software, only to have a new toolbar installed in my browser. For those of you like me, who want to keep their files safe and away from prying eyes, I dedicate this article to you. The method I will show you will work on all windows operating systems, and is a simple piece of code using batch file programming. Here are the steps:


  1. Open Notepad, copy the code shown below, and paste it in the Notepad.




title How to Password Protect a Folder Without Third Party Software

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

if NOT EXIST TEQnation.comFolder goto MDTEQnation.comFolder


echo Are you sure you want to lock this folder? Press Y for Yes, and N for No (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 TEQnation.comFolder “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”

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

echo Folder locked

goto End


echo Please Enter the Password to Unlock Your Folder

set/p “pass=>”

if NOT %pass%== goto FAIL

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

ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” TEQnation.comFolder

echo Folder Unlocked successfully

goto End


echo Invalid password

goto end


md TEQnation.comFolder

echo created successfully

goto End



  1. Save the notepad file as Lock.bat


  1. Double click on Lock.bat. This will automatically create a new folder called TEQnation.comFolder.



  1. Move or copy all the date you want to keep secure into this folder.


  1. Double click on Lock.bat again, which will ask if you want to lock the folder. Press Y, and then hit enter.



  1. If you followed my simple instructions then the TEQnation.comfolder will be hidden now.


  1. To view the folder and its contents, double click on Lock.bat, and it will ask you for a password. The default password is



  1. To change the password, all you have to do is replace com with the desired password.


Happy Safe Keeping! Oh and make sure you leave your comments below or send me a mail at telling me how much you loved this post:P

Leave a Reply

Your email address will not be published. Required fields are marked *