keyboard shortcut to toggle hidden files


Skeptic Mike

Well-known member
Member
Local time
6:00 AM
Posts
44
OS
Windows 11 23H2 Pro
A web search for this suggests Alt-V H H - this does work, but ignores super hidden files. Setting the appropriate registry entries and refreshing with F5 also works, but doesn't translate well into a script. The issue is sending F5 to refresh the view. It can be done but you may have to allow time delays. @LesFerch includes this function in his RightClickTools. I checked his source code to see if he has a better way of doing this. He does for windows 11 (and current versions of windows 10).

RightClickTools performs all its functions by running the RightClickTools.exe with the appropriate parameter. For toggling hidden files:

RightClickTools.exe /showhide

Downloading the zip file from https://github.com/LesFerch/RightClickTools/releases/download/1.2.0/RightClickTools.zip . unblocking it and extracting the exe, shows that it works nicely. Although it shouldn't be too difficult to create a smaller program with only that function, I don't think it would work any better.
So, to get a decent keyboard shortcut to toggle hidden files, create a shortcut file for RightClickTools.exe with the /showhide parameter, and set the shortcut key to taste. I used 'Toggle Hidden' as the shortcut name and Ctrl + Shift + H for the shortcut key. The shortcut needs to be in a suitable folder. I used the user start menu. You can find this from shell:programs in the run box.
I've not installed RightClickTools, but this would work just as well if you have.

Mike
 

My Computer

System One

  • OS
    Windows 11 23H2 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    MSI
    CPU
    i3-1215U
    Memory
    8GB
    Monitor(s) Displays
    Dell S2721
    Screen Resolution
    3840x2160
    PSU
    External 65W
    Keyboard
    Cherry mechanical (Blue)
    Mouse
    Microsoft
    Browser
    FireFox
    Antivirus
    MS
Hello Mike, :alien:

You might see if the context menu added by the tutorial below may work for you for this.

 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    CyberPower CP1500PFCLCD
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender
You might see if the context menu added by the tutorial below may work for you for this.

This isn't really relevant, but thanks. Indeed the technique for showing super hidden files has the considerable disadvantage of closing all your explorer windows. Whereas the Les Ferch method doesn't.

My initial post was simply to suggest a way of using a keyboard shortcut to toggle hidden files, in case anyone else might find it helpful. I prefer that to using the context menu.

Mike
 

My Computer

System One

  • OS
    Windows 11 23H2 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    MSI
    CPU
    i3-1215U
    Memory
    8GB
    Monitor(s) Displays
    Dell S2721
    Screen Resolution
    3840x2160
    PSU
    External 65W
    Keyboard
    Cherry mechanical (Blue)
    Mouse
    Microsoft
    Browser
    FireFox
    Antivirus
    MS
This isn't really relevant, but thanks. Indeed the technique for showing super hidden files has the considerable disadvantage of closing all your explorer windows. Whereas the Les Ferch method doesn't.

My initial post was simply to suggest a way of using a keyboard shortcut to toggle hidden files, in case anyone else might find it helpful. I prefer that to using the context menu.

Mike

The Hide/Show hidden items menu item should toggle on/off without restarting explorer.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    CyberPower CP1500PFCLCD
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender
2 AHK compiled to EXE

one is Ctrl + F2 to show all hidden and system protected files

other is just double click to show all hidden and system protected files. threw this one in here so you can assign it to whatever hotkey fits your system setup best.
 

Attachments

My Computer

System One

  • OS
    Windows 11 Pro

Latest Tutorials

Back
Top Bottom