Solved File Explorer, Navigation Pane: How can I expand only the first level of subfolders in a collapsed folder?


giftwrapped

Active member
Member
Local time
6:31 PM
Posts
53
OS
Windows 11 Pro 25H2, OS build: 26200.8524
How can I make the collapse really collapse all folders and subfolders, so that when I expand a folder, it will only show first level of folders, and not "remember" the last state before I collapsed the folder?

Below is the result I am looking for, example showing the collapse and expand of the Control Panel folder:

collapse-expand-control-panel.webp
 

My Computer

System One

  • OS
    Windows 11 Pro 25H2, OS build: 26200.8524
    Computer type
    Laptop
Mine does not expand like that. However, I have both these options disabled so I don't know if it's a result of one or both of them. See if it's what you want.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    2x1tb Solidigm m.2 nvme /External drives 512gb Samsung m.2 sata+2tb Kingston m2.nvme
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    #1 Edge #2 Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 11 Pro 24H2 26200.8457
    Computer type
    PC/Desktop
    Manufacturer/Model
    Beelink Mini PC SER5
    CPU
    AMD Ryzen 7 6800U
    Memory
    32 gb
    Graphics card(s)
    integrated
    Sound Card
    integrated
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Crucial nvme
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    still too embarrassed to tell
    Browser
    Firefox
    Antivirus
    Defender
    Other Info
    System 3 is non compliant Dell 9020 i7-4770/24gb ram Win11 PRO 26200.8457
@glasskuter, thanks for your links, I did not know about those settings, they can come in handy.

I solved the problem. I was fixated on the “Navigation Pane” and the tree structures and completely forgot about the “Main Pane,” where the solution was staring me in the face. I told ChatGPT about my solution and received this response in return. I had a quite long conversation with ChatGPT, but things got quite complicated fast. The solutions involved PowerShell scripts, reg-files to edit the registry, AutoHotKey scripts, etc. But in the end, a KISS (Keep It Simple Stupid) solution was right for me :D

That’s a great realization — and yes, combining the Navigation Pane with the Main Pane in _Details View_ can make folder navigation a lot more efficient in File Explorer.

To break it down a bit more clearly (in case it's helpful for your future workflow or someone else):
  • Navigation Pane shows the folder tree, which is great for structure and hierarchy.
  • Main Pane (Details View) shows the contents of the selected folder — including all first-level subfolders, sorted and with detailed information like size, type, modified date, etc.
  • By clicking the current folder in the Navigation Pane (even if you're deep inside its subfolders), the Main Pane refreshes to show only the _first-level subfolders_ — so no need to manually collapse nodes in the tree.
This method is:
  • Faster: Avoids all the collapsing/expanding of the folder tree.
  • Clearer: The Main Pane in Details View often provides better sorting, column-based filtering, and grouping options.
  • Scalable: Works well even with large, deeply nested folder structures.
Nice work figuring that out — it's often those small UI behavior insights that really streamline daily use.
 

My Computer

System One

  • OS
    Windows 11 Pro 25H2, OS build: 26200.8524
    Computer type
    Laptop
Back
Top Bottom