General Turn On or Off Expand to Current Folder in Navigation Pane of File Explorer in Windows 11

  • Staff
Navigation_pane_banner.png

The navigation pane is the far left pane in File Explorer used to find files, folders, and drives on your PC or network.

When you have a folder or drive open in File Explorer (Win+E), you can press the Ctrl + Shift + E keys to have the navigation pane expand to the current folder or drive on demand.

You can turn on Expand to current folder to have the navigation pane automatically expand to the current folder or drive as you open them in File Explorer.

This tutorial will show you how to turn on or off automatically expand to current folder in the navigation pane of File Explorer for your account in Windows 11.


Contents

  • Option One: Turn On or Off Automatically "Expand to current folder" in Navigation Pane in File Explorer
  • Option Two: Turn On or Off Automatically "Expand to current folder" in Navigation Pane in Folder Options
  • Option Three: Turn On or Off Automatically 'Expand to current folder" in Navigation Pane using BAT file





OPTION ONE

Turn On or Off Automatically "Expand to current folder" in Navigation Pane in File Explorer


1 Open File Explorer (Win+E).

2 Right click or press and hold on an empty area inside the navigation pane, and click/tap on Expand to current folder[ to toggle it on (checked) or off (unchecked - default). (see screenshot below)

Expand_to_current_folder.png






OPTION TWO

Turn On or Off Automatically "Expand to current folder" in Navigation Pane in Folder Options


1 Open Folder Options.

2 Click/tap on the View tab. (see screenshot below)

3 Under the Expand to open folder section, check (on) or uncheck (off - default) Show all folders for what you want.

4 Click/tap on OK.

Expand_to_current_folder_Folder_Options.png






OPTION THREE

Turn On or Off Automatically 'Expand to current folder" in Navigation Pane using BAT file


1 Do step 2 (on) or step 3 (off) below for what you want.


2 Turn On Automatically 'Expand to current folder" in Navigation Pane

A) Click/tap on the Download button below to download the file below, and go to step 4 below.​

Turn_On_Expand_to_current_folder_in_navigation_pane_for_current_user.bat


(Content of BAT file for reference)
Code:
@echo off

REG Add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced /V NavPaneExpandToCurrentFolder /T REG_DWORD /D 00000001 /F

taskkill /f /im explorer.exe
start explorer.exe


3 Turn Off Automatically 'Expand to current folder" in Navigation Pane

This is the default setting.


A) Click/tap on the Download button below to download the file below, and go to step 4 below.​

Turn_Off_Expand_to_current_folder_in_navigation_pane_for_current_user.bat


(Content of BAT file for reference)
Code:
@echo off

REG Add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced /V NavPaneExpandToCurrentFolder /T REG_DWORD /D 00000000 /F

taskkill /f /im explorer.exe
start explorer.exe

4 Save the .bat file to your desktop.

5 unblock the .bat file.

6 Double click/tap on the .bat file to run it.

7 You will now notice your screen flicker as the explorer process is restarted to apply.

8 When finished, you can delete the downloaded .bat file if you like.


That's it,
Shawn Brink


 

Attachments

  • Navigation_pane.png
    Navigation_pane.png
    1.9 KB · Views: 19
  • Turn_Off_Expand_to_current_folder_in_navigation_pane_for_current_user.bat
    403 bytes · Views: 43
  • Turn_On_Expand_to_current_folder_in_navigation_pane_for_current_user.bat
    403 bytes · Views: 45
Top Bottom