Tips & Tricks

Creating secret folder using batch file

For this tutorial, we will going to use batch file in creating a secret folder. If you want to store some sensitive files that you might want others not to see, this is for you. After this tutorial I will give some pros and cons of this kind of method. So let’s start.

  • Open notepad or notepad++ and if you have any other editing software it will do.
  • Copy and paste this line of codes;

: cls
title Private Folder
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=>”
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 Secret-Folder
echo Secret-Folder created successfully!
goto End

  • Press “ctrl + F” of find function and find “INPUT PASSWORD HERE”.
  • Change the password whatever you want and Save any name you want but with “.bat” file extension, file type must be in All Files just like this.

  • After that, create a new folder anywhere you want to put and named it any name you want.
  • Put the batch file in the folder you had created and run.
  • Once run, follow the steps on it and your done.

Now that your done you can lock and  unlock the folder and you can now store your stuff there whatever you want. Here are the PROs and CONs of this method.


  1. Secured
  2. easy to set up
  3. easy to hide


  1. Password can view when editing.
  2. Accessible by who knows the technology.

For more tutorials kindly check the Tips & Trick section of the site.

4246total visits,16visits today

Leave a Reply

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