How to Make a Private Folder with your password

Post written by
Folder lock without software
Hello friends Today I am here with the new trick that will make your folders private without any extra software like folderlock or any other.I our private life this may happen that we need to hide our files or sometimes photos in a folder so that no one ordinary user can see it then if you are using a low power computer then it become scary that you use a extra software to hide yopur folders or file.That's is the origin of this post to hide the folder without any extra software.The idea behind this post came from my roommate Sachendra Gautam who wants to lock his private photos so that no one other can see it while his friends are investigating in his own laptop.
So here is the bstep by step procedure to make a folder private

  • First of all make a folder in anywhere (I am choosing C drive)

  • Making folder

  • Inside that one crate a New Text Document (Right click > New text document)

  • Create text document inside folder

  • Write the following script inside the Notepad window and save as locker.bat
  • cls 
    @ECHO OFF 
    title Folder Private 
    if EXIST "HTG Locker" 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. 
    goto CONFIRM 
    ren Private "HTG Locker" 
    attrib +h +s "HTG Locker" 
    echo Folder locked 
    goto End 
    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 
    echo Invalid password 
    goto end 
    md Private 
    echo Private created successfully 
    goto End 
    Replace PASSWORD_GOES_HERE code in the script with your own Password.
  • Now you can delete the file New text document.txt as shown
  • Now double click on locker.bat .This will create a folder named Private
  • Now put all you file and again double click on locker.bat .Now It will give you a prompt box Simply put 'Y' in the box and press Enter

  • warning to lock

  • The folder will be disappeared as shown below in the image

    Folder Disappeared

How to see it again?

So upto now you have locked the folder without any extra software now its time for how will you unhide the folder hidden by script then for this follow the following method
  • Double click on locker.bat
  • The box will open asking password .Simply put you password the folder will become public.

  • Getting Folder back


Oh! The post ended now .Here we learnt how to make a folder private without using any extra software just by using the system setting and some script.The future post will be exciting thus stay tuned .If you have any problem related to post just comment it in comment box .We are always ready to hear from you.