Add Hide File and Unhide File Options in File Context Menu in Windows



This tutorial is out of date now. Please visit following link for a newer and better method to add "Hide" and "Unhide" options in file as well as folder context menus:

Add “Hide” and “Unhide” Options in File / Folder Context Menus in Windows XP, Vista and 7

Complete list of AskVG articles



This article was posted in Others.


Share |


Related Articles

Popular Articles



11 Comments

  • :idea: its very usefull

  • I have tried this Mr.Vishal but when i click on any file to hide or unhide my command prompt jus blinks once and closes .........nothing else happens :shock:

  • VG

    ^^ Refresh the explorer window and you'll see the changes. :)

  • Hey same is happening with me.. Just a cmd prompt blinks..n nothin else happens...i refreshed the explorer..then also its the same...Tried closing the folder n again opening it... still the file was the same...nothing hidden

  • how can i remove this on my context menu?

  • VG

    ^^ Open regedit and goto:

    HKEY_CLASSES_ROOT\*\shell\

    Under this key, delete "Hide File" and "Unhide File" keys.

  • :wink: just when it was needed - very helpful

  • Hey Man, another awesome tweak from AskVG, der is a prob wid this 1 though.
    Like others i m facing d same prob. Clicking HIDE/UNHIDE FILE options do nothing but showing cmd screen for a moment and den nothing at all.

    Any fix or sumthing plz let us know.
    Thnx a ton.

  • Hey guys,

    i made it work with little tweaking and here is what i did.

    1) open the registry for editing (Run->regedit)
    2) Navigate to this location "HKEY_CLASSES_ROOT\*\shell\hide File\Command"
    3) Right pane will display (Default). Double click on (Default).
    4) Change the Value data to "attrib -h "%1"" . Only change here would be an extra pair of
    double quotes for %1.
    5) Repeat the steps from 2 to 4 for Unhide File and the location is "HKEY_CLASSES_ROOT\*\shell\Unhide File\Command".
    6) This can be done by making the changes to .reg files as well, but for some reason it
    didnt work for me , so i decided to do it manually. Hope it works for others

  • this post is bogus, you cannot unhide a hidden file, because is hidden, so you need to add other registry code to SEE ALL hidden files, so you could unhide the hidden file.