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

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

   Information
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 folder(s) contents in Vista, Windows 7, and Windows 8.

You must be logged in as an administrator to be able to add or remove this from the context menu. All users will be able to use the context menu though.

   Note
This context menu will only set the attribute of only the selected file(s) and/or folder(s) to either be hidden or unhidden, or only the "subfolders and files" of the selected folder(s) to be hidden or unhidden.

It will not change a system attribute of a file or folder that may have it set to them. For example, hidden protected operating system files.

OPTIONS:
Hide/unhide Only Selected Folder(s) and/or File(s) without including the subfolders and files in any selected folder(s).

AND

Hide/unhide Only Subfolder(s) and File(s) in the Selected Folder(s) without hiding/unhiding the selected folder(s).


EXAMPLE: What is Added to Context Menu of Files and Folders
Files.jpg Folders.jpg


Here's How:
1. To Add "Hide or Unhide a File or Folder" to Context Menu
A) Click on the Download button below to download the file below.
Add_Hide-Unhide_File-and-Folder.reg

Download


B) Go to step 3.
2. To Remove "Hide or Unhide a File or Folder" from Context Menu
NOTE: This is the default setting.
A) Click on the Download button below to download the file below.
Remove_Hide-Unhide_File-and-Folder.reg

Download


3. Click on Save, and save the .reg file to the desktop.

4. Right click on the downloaded .reg file and click on Merge.

5. If prompted, click on Run, Yes, Yes, and OK.

6. When done, you can delete the downloaded .reg file if you like.

That's it,
Shawn



 

Attachments

Last edited:
Wow, your an extremely clever computer user :)

Thank you.

It seems a bit confusing, will have to get used to it.

Please can you tell me the difference between:

Only Select Folder(s) and/or File(s) + Only Subfolder(s) and File(s) in Select Folder(s)
 

My Computer My Computer

At a glance

Windows 7 Ultimate SP1 - 64 BitIntel Core i5 2500k2x4GB DDR3 1333HzAti Radeon 6770
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Novatech iRush Pro
OS
Windows 7 Ultimate SP1 - 64 Bit
CPU
Intel Core i5 2500k
Motherboard
Foxconn H67M-S/H67M-V/H67
Memory
2x4GB DDR3 1333Hz
Graphics Card(s)
Ati Radeon 6770
Sound Card
None
Monitor(s) Displays
Samsung S22B150
Screen Resolution
1920x1080
Hard Drives
2x500GB
PSU
500W
Cooling
Fan
Keyboard
HP KU0316
Mouse
Wireless Logitech M185
Internet Speed
20MB/s
Antivirus
Avast Free
Browser
Google Chrome
Other Info
Logitech M185 Mouse
KU-M316 Keyboard
You're welcome Infinite. :)

Hide/unhide Only Selected Folder(s) and/or File(s) without including the subfolders and files in a folder.

OR

Hide/unhide Only Subfolder(s) and File(s) in Selected Folder(s) without hiding/unhiding the selected folder.
 
Last edited:

My Computer My Computer

At a glance

64-bit Windows 11 Pro for WorkstationsIntel i7-8700K OC'd to 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Another nice tutorial!
 

My Computer My Computer

At a glance

Win 7 Pro 64-bitIntel i5 2.4 Ghz8GB DDR3Intel HD 3000
Computer type
Laptop
Computer Manufacturer/Model Number
Sony Vaio VPCEB47GM Laptop
OS
Win 7 Pro 64-bit
CPU
Intel i5 2.4 Ghz
Memory
8GB DDR3
Graphics Card(s)
Intel HD 3000
Sound Card
IDT High Definition
Monitor(s) Displays
15.6 WGXA Anti-Glare LED
Screen Resolution
1280x800
Hard Drives
640Gb 7200rpm
Antivirus
MSE
Browser
Opera (primary) with IE9 backup
You're welcome Infinite.

Hide/unhide Only Selected Folder(s) and/or File(s) without including the subfolders and files in a folder.

OR

Hide/unhide Only Subfolder(s) and File(s) in Selected Folder(s) without hiding/unhiding the selected folder.

So if I wanted to Hide or Unhide everything including the file, will I need to do both?
 
Last edited:

My Computer My Computer

At a glance

Windows 7 Ultimate SP1 - 64 BitIntel Core i5 2500k2x4GB DDR3 1333HzAti Radeon 6770
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Novatech iRush Pro
OS
Windows 7 Ultimate SP1 - 64 Bit
CPU
Intel Core i5 2500k
Motherboard
Foxconn H67M-S/H67M-V/H67
Memory
2x4GB DDR3 1333Hz
Graphics Card(s)
Ati Radeon 6770
Sound Card
None
Monitor(s) Displays
Samsung S22B150
Screen Resolution
1920x1080
Hard Drives
2x500GB
PSU
500W
Cooling
Fan
Keyboard
HP KU0316
Mouse
Wireless Logitech M185
Internet Speed
20MB/s
Antivirus
Avast Free
Browser
Google Chrome
Other Info
Logitech M185 Mouse
KU-M316 Keyboard
Thank you Lee. :)
 

My Computer My Computer

At a glance

64-bit Windows 11 Pro for WorkstationsIntel i7-8700K OC'd to 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Hide/unhide Only Selected Folder(s) and/or File(s) without including the subfolders and files in a folder.

OR

Hide/unhide Only Subfolder(s) and File(s) in Selected Folder(s) without hiding the selected folder.

So if I wanted to Hide or Unhide everything including the file, will I need to do both?


Yes, for folder. :)

I couldn't get it worked out so far to automatically hide a selected folder and it's contents with one click. Only with using both instead for now.
 
Last edited:

My Computer My Computer

At a glance

64-bit Windows 11 Pro for WorkstationsIntel i7-8700K OC'd to 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Thank you Shawn :)

I have not applied your handy trick ... yet.
BUT if a folder/file is already hidden how can the folder/file be unhidden if it is already hidden ? :confused:
I suppose folder-options would have to be set to show-all to use the unhide context-menu item.

Is it possible to only view Hide and Unhide on Shift+RClick context-menu instead of the RClick context menu?
Shift+RClick lists 23 items
RClick lists 20 items

Would this tweak be easier/possible through a third party context menu manager ?
I am not adverse to tweaking the registry manually.

Thank you :)
 

My Computer My Computer

At a glance

XP Pro (x86) | 7 HP (x86) & (x64) | 7 Pro (x64)
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Toshiba, Lenovo (laptops) + 4 rigs
OS
XP Pro (x86) | 7 HP (x86) & (x64) | 7 Pro (x64)

My Computer My Computer

At a glance

64-bit Windows 11 Pro for WorkstationsIntel i7-8700K OC'd to 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Back
Top