Most of the time you need third party apps to password protect your folder on PC. But you can also create a password-protected folder without any Software. I will teach you to do this in just 6 simple steps.


Our friends might use our PC/laptop at times and there might be some important information that shouldn’t be accessed by anyone else. So, it is crucial for us to know how to protect our files and folders so that there is no threat to our data. Even though there are so many methods to protect your folder using third-party software. I’ll help you do it without the help of any other software.

Create a Password Protected Folder without any Software:


Follow the below 6 Easy Steps to create a Password Protected Folder without any Software:

  • Open Notepad by clicking the start button. Then paste the following code in it.
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Private goto MDPrivate
echo Are you sure 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.
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 Your Secure Folder
set/p "pass=>"
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

Note: You have to mention the password you want to set in the particular keyword ” YOUR_PASSWORD ” given in the above code.

  • Save it as ‘FolderLock.bat’
  • Go to the saved location and run the FolderLock.bat file. A folder named ‘Private’ will be created in the same directory.
  • You can now place all the files you need to protect in the Private folder. After that double-click on the Folderlock, “do you want to lock (Y/N)” will be shown.
  • Press Y and then click on enter, the folder Private will be hidden now.
  • Click on the FolderLock.bat file again and it will ask you to enter the unlock password and the password is the one you’ve have put in the place of YOUR_PASSWORD.

Voila! Your folder is now secured with the password. And every time you ever want to secure your files then run the FolderLock.bat. Place the files in the Private folder and again run FolderLock.bat file which will hide the Private folder.

Read more guides here:



Please enter your comment!
Please enter your name here