Hide file in Windows

Everyone has some file he needs to hide. I won't ask the motive of doing so. But I'm going to help you in doing that. Now there are many methods to do so.

3.Conventional method


The conventional method. Make sure that "don't show hidden files, folders or drives" is selected.
  • Open any folder
  • Click on view->folder options.
  • Click on don't show hidden files, folders or drives.
  • Now right click any folder. Click properties.
  • Check the hidden button under attributes.
  • Done. If you want to show the folder again, follow the first 3 steps and check Show hidden files and folders.

2.Software Methods

  • Go to google.
  • Type - 'How to hide a folder in Windows'
  • You will see many results - tutorials and 3rd party software.
  • Download the software, read the instructions, and you are done. But wait, the best method is yet to go.

1.Special Script Method

Alright, now why is this method special?
  1. Your folder is password protected.
  2. The show-folder & hide-folder method does not show it.
  3. It's a one click method. Easy to do. Only the initialization(i.e. first time) is a bit complicated.
How to do it?
There are 2 methods to do it, one is long, other is short.
  • Easy one first.
    Go to the download link.
    Complete the survey, and download it.
    Copy the downloaded file and paste it into any folder.
    Run it.
    A folder named private will be created.
    Paste all the stuff you want to hide into the folder.
    Run the downloaded file again.
    Press 'y' (without the quotes)
    To show the files again, double click the downloaded file and type customize as the password.
    DONE!
  • Tough one
    So, you have to copy this code to a text document. Then you have to save it as a .bat extension file. Code is as follows-
cls
@ECHO OFF
title Folder Private
if EXIST "HTG Locker" goto UNLOCK
if NOT EXIST Private goto MDLOCKER
:CONFIRM
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
:LOCK
ren Private "HTG Locker"
attrib +h +s "HTG Locker"
echo Folder locked
goto End
:UNLOCK
echo Enter password to unlock folder
set/p "pass=>"
if NOT %pass%== customize goto FAIL
attrib -h -s "HTG Locker"
ren "HTG Locker" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End

Now, once you are done copying it, your batch file is made. After that follow the instructions of the 'easy method'.

Note: The password can be changed from customize to anything else. Just change the word from the script.

If you have any doubts, please feel free to drop a comment.

Comments

Popular Posts