Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: "Hide/show selected file" using context menu

29 Apr 2013   #1

Windows 7
 
 
"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 System SpecsSystem Spec
.

29 Apr 2013   #2
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

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 System SpecsSystem Spec
29 Apr 2013   #3

Windows 7
 
 

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 System SpecsSystem Spec
.


29 Apr 2013   #4
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

I'm afraid that I don't know how to accomplish that either.
My System SpecsSystem Spec
Reply

 "Hide/show selected file" using context menu




Thread Tools




Our Sites

Site Links

About Us

Find 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 01:37 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33