How to Create a Password Protected Folder in windows without any Software

I am not sure about you but many times i need to hide some my personal stuff like pics, videos and much more. Today everyone knows about Windows hidden feature which is used to hide files so that is not too secured. Anyone can access your files by a single click on “show hidden files”. So nothing is secured today.

today’s post is all about how to create a password protected folder in windows and hide from others. No one can access the folder without password which you have created. there is a huge list of software which can do this task but i am a type of man that don’t feel better while using software for basic purpose. so i found a way for us….

watch video to better understand

so letz start now and follow below steps

Step : 1 – Change Windows Settings

you have to change some basic settings of your machine to create that password protected folder.

  • go to control panel > folder options > view
  • now mark on show hidden files, folders, and drives

Step : 2 – Create the password protected folder

  • just paste below code in notepad.
title Folder Private
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Private goto MDLOCKER
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.
ren Private "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
echo Enter password to unlock folder
set/p "pass=>"
if NOT %pass%== your password goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
echo Folder Unlocked successfully
goto End
echo Invalid password
goto end
md Private
echo Private created successfully
goto End
  • type password of your choice at the letters your password in above code
  • and save that as “private.bat”
  • now once click on file private.bat and it will create a new folder named as private.

Step : -3 Lock the folder

  • click on private.bat and it will ask you to lock your folder
  • type y for yes and n for no
  • now your folder is locked

Step : -4 Open the folder

  • again click on private.bat and now it will ask you to enter your password
  • type the password and click enter
  • your folder is unlocked now

now fire up comments and tell me your experience about this technique.

Rajendra Choudhary

Rajendra Choudhary is a engineering student and a professional blogger. His free time is spent on blogging, wordpress, creating videos for youtube channel to share his knowledge with rest of us

3 thoughts on “How to Create a Password Protected Folder in windows without any Software

  • October 2, 2015 at 3:05 PM

    nice tutorial to secure some personal stuff

  • October 2, 2015 at 3:53 PM

    Well… it’s… something. Not really usefull, since it doesn’t protect anything, but… that’s it.

  • October 12, 2017 at 4:51 AM

    You need to know who you contacting. This is one major thing kimperly majorly hit about.
    They are beyond the mere things we see. It’s internet and he sees everything that goes on it.
    He’s available for the next few days before he stops replying to any request. Going off the radar is the best. Those were his words. He helps in building your security well enough.
    His name is kimperly lopez(wizardcyprusTeam)
    Email: wizardcyprushacker@gmail .com..He will take you through anything.


Leave a Reply or Query