"Hide/show selected file" using context menu


  1. Posts : 5
    Windows 7
       #1

    "Hide/show selected file" using context menu


    Hi,
    I managed to create these custom context menu options:



    Creating two registry keys in [HKEY_CLASSES_ROOT\Directory\shell], and using these commands:
    Code:
    attrib -h "%1"
    attrib +h "%1"
    ("Mostra" = show, "Nascondi" = hide in italian)

    Now, is there a way to make only one of the two options appear? ("Show file" if the file is hidden, "Hide file" if the file is not hidden). I suppose it's not that easy...

    Thanks for the help!
      My Computer


  2. Posts : 71,959
    64-bit Windows 11 Pro for Workstations
       #2

    Hello Trial4life, and welcome to Seven Forums.

    You might see how this may work for you.

    File and Folder - Add "Hide" and "Unhide" to Context Menu

    Hope this helps, :)
    Shawn
      My Computer


  3. Posts : 5
    Windows 7
    Thread Starter
       #3

    Thanks for the fast reply.

    I've seen that topic, but I was trying to do something different, something like this:


    The system should recognize if the file/folder is already hidden or not, so that there should be only one context menu option (and not two in cascade). Is it possible?
      My Computer


  4. Posts : 71,959
    64-bit Windows 11 Pro for Workstations
       #4

    I'm afraid that I don't know how to accomplish that either.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 05:14.
Find Us