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
Trial4life

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
Brink
Microsoft MVP

64-bit Windows 10
 
 

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
Trial4life

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
Brink
Microsoft MVP

64-bit Windows 10
 
 

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





Similar help and support threads
Thread Forum
add icon to context menu "Open File/Folder Location"
Is it possible to add icon to the entry Open File/Folder Location? I created expendable string value and name it Icon and then in value i inserted the path to the .ico file, but no icon is showing up.
Customization
Show - Hide Known File Extensions - Add to Context Menu
Add "Show/Hide Known File Extensions" to Context Menu in Vista, Windows 7, and Windows 8 A file name extension is a set of characters added to the end of a file name that identifies the file type or format that determines what default program should open it. This will show you how to add or...
Tutorials
"Open File Location" - Add or Remove from Context Menu
How to Add or Remove "Open File Location" and "Open Folder Location" from the Context Menu This will show you how to add or remove "Open File Location" and "Open Folder Location" from the context menu for all users in Windows 7 and Windows 8. This is when you right click on a shortcut of a...
Tutorials
File and Folder - Add "Hide" and "Unhide" to Context Menu
How to Add "Hide" and "Unhide" to File and Folder Context Menu in Vista, Windows 7, and Windows 8 This will add Hidden File Attributes and Hidden Folder Attributes to the context menu of files and folders for all users to be able to hide or unhide one or more selected file(s), folder(s), and/or...
Tutorials
Remove "Create Shortcut" from file and folder context menu?
Hi Shawn, is there a way to remove "Create Shortcut" from the right-click context menu on a file/folder?
Customization
"Sort by" doesn't show up in desktop context menu
Hi there, I have a weird and frustrating problem: In my desktop context menu, the option "Sort by" doesn't show up. I don't know why and did some Google searches but almost everything I found was related to explorer issues, not to desktop issues! I also read through "How to Change the Desktop...
General Discussion

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 23:52.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App