File Explorer wont expand to folder


I am on 24H2 and even on fresh install "Expand to current folder" doesn't work for me. I previously was on Windows 10 and it worked without an issue.
I can only get folder listing if I enable "Show all folders" but then it also shows irrelevant folders and make the browsing cluttered.

1738423821796.webp
 

My Computer

System One

  • OS
    Windows
    Computer type
    Laptop
Can we get some traction on this? No one linked to any feedback hub post. Can someone please link their feedback hub post so we can upvote it?
 

My Computer

System One

  • OS
    Windows 10
    CPU
    i9 10980XE
    Motherboard
    Asus Rampage VI Extreme Encore
    Memory
    128GB GSKILL F4-3000C14-16GTZR
    Graphics Card(s)
    EVGA Nvidia 3090 FTW3
    Sound Card
    Peachtree Decco Sky 125
    Screen Resolution
    2560x1440
    PSU
    AX1600i
    Case
    Enthoo Elite Pro
Use CTRL+SHIFT+E as a workaround for now.
 

My Computers

System One System Two

  • OS
    Win 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Vivobook
    CPU
    AMD Ryzen™ 7 7730U
    Motherboard
    M1605YA
    Memory
    24GB Dual-Channel DDR4 @ 1596MHz (22-22-22-52)
    Graphics Card(s)
    512MB ATI AMD Radeon Graphics (ASUStek Computer Inc)
    Monitor(s) Displays
    Generic PnP Monitor (1920x1200@60Hz) - P1 PLUS (1920x1080@59Hz)
    Screen Resolution
    1920 X 1200
    Hard Drives
    953GB Western Digital WD
    PSU
    45 Watts
    Mouse
    Lenovo Bluetooth.
    Internet Speed
    500 Mbps
    Browser
    Edge
    Antivirus
    Defender
  • Operating System
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    ACER NITRO
    CPU
    AMD Ryzen 7 5800H / 3.2 GHz
    Motherboard
    CZ Scala_CAS (FP6)
    Memory
    32 GB DDR4 SDRAM 3200 MHz
    Graphics card(s)
    NVIDIA GeForce RTX 3060 6 GB GDDR6 SDRAM
    Sound Card
    Realtek Audio. NVIDIA High Definition Audio
    Monitor(s) Displays
    15.6" LED backlight 1920 x 1080 (Full HD) 144 Hz
    Screen Resolution
    1920 x 1080 (Full HD)
    Hard Drives
    Samsung 970 Evo Plus 2TB NVMe M.2
    PSU
    180 Watt, 19.5 V
    Mouse
    Lenovo Bluetooth
    Internet Speed
    500 Mbps
    Browser
    Edge
    Antivirus
    Defender
Can we get some traction on this? No one linked to any feedback hub post. Can someone please link their feedback hub post so we can upvote it?
I used to think like you do, but people kept telling me to adapt so, I adapted. So, now, I think that those who still insist on using the File Explorer with Tabs instead of the classic File Explorer with Ribbon must be sado masochists. I have nothing against sado masochists. Ergo, I don't go on the feedback hub anymore now.
 

My Computers

System One System Two

  • OS
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Asus TUF Gaming F16 (2024)
    CPU
    i7 13650HX
    Memory
    16GB DDR5
    Graphics Card(s)
    GeForce RTX 4060 Mobile
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    512GB SSD internal
    37TB external
    PSU
    Li-ion
    Cooling
    2× Arc Flow Fans, 4× exhaust vents, 5× heatpipes
    Keyboard
    Logitech K800
    Mouse
    Logitech G402
    Internet Speed
    30Mbit/s up, 500Mbit/s down
    Browser
    FF
    Antivirus
    What's an antivirus?
  • Operating System
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Medion S15450
    CPU
    i5 1135G7
    Memory
    16GB DDR4
    Graphics card(s)
    Intel Iris Xe
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    2TB SSD internal
    37TB external
    PSU
    Li-ion
    Keyboard
    Logitech K800
    Mouse
    Logitech G402
    Internet Speed
    30Mbit/s up, 500Mbit/s down
    Browser
    FF
This bug is a real pain. Here is my workaround

Be sure "Expand to open folder" is checked in Folder Options
( . . . >> Options >> View -> Advanced Settings -> Navigation pane )

After the File Explorer opens a new window, and fails to expand the navigation pane to the desired folder,
> Click in the empty region just to the right of the directory path
(The content changes to the directory path as a single, highlighted string)
> Click again in the same spot
Removes the highlight [ Important ! ]
> Hit the Enter key
This will trigger the "Expand to open folder" action to the current folder in the navigation pane
 

My Computer

System One

  • OS
    Windows 11
heres an autohotkey script (compiled exe is attached) that will reapply Expand to Open Folder via reg to keep the navigation pane expand working properly.

ahk code inside exe:
Code:
#Persistent
SetTimer, EnforceExpandToFolder, 500
return

EnforceExpandToFolder:
RegRead, currentValue, HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced, NavPaneExpandToCurrentFolder
if (currentValue != 1) {
    RegWrite, REG_DWORD, HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced, NavPaneExpandToCurrentFolder, 1
    ; Optional: refresh Explorer to apply change
    PostMessage, 0x111, 41504,,, ahk_class CabinetWClass
}
return

EDIT:
See Post Below
 
Last edited:

My Computer

System One

  • OS
    Windows 11 Pro
heres an autohotkey script (compiled exe is attached) that will reapply Expand to Open Folder via reg to keep the navigation pane expand working properly.

ahk code inside exe:
Code:
#Persistent
SetTimer, EnforceExpandToFolder, 500
return

EnforceExpandToFolder:
RegRead, currentValue, HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced, NavPaneExpandToCurrentFolder
if (currentValue != 1) {
    RegWrite, REG_DWORD, HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced, NavPaneExpandToCurrentFolder, 1
    ; Optional: refresh Explorer to apply change
    PostMessage, 0x111, 41504,,, ahk_class CabinetWClass
}
return
I tried it several times - the .exe loads on the computer - I can see it active in the taskbar, but the Downloads folder does not expand when clicking it from Quick access. This is the only folder that behaves like this. Any other folder that I test works.

EDIT: It is possible that my registry is already compromised because I have tested other solutions and messed with the OneDrive registry as well. Please take my comment with a grain of salt.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    HP
the Downloads folder does not expand when clicking it from Quick access. This is the only folder that behaves like this. Any other folder that I test works.
In my testing, the issue occurs with all shell folders in Quick Access (Downloads, Documents, Pictures, Music, Videos). It also doesn't make a difference for me whether I use the old ribbon (Windows 10 style) Explorer or the tabbed (Windows 11) Explorer. Ctrl-Shift-E does work for me with either Explorer.

I tested on a Windows 11 VM. I use Windows 10 on my main machine, where, of course, there is no issue at all with Expand to Folder.
 

My Computer

System One

  • OS
    Windows 10/11
    Computer type
    Laptop
    Manufacturer/Model
    Acer
yeah its the shell. i'll write it to add those. if you pin Downloads etc to quick access it does work though. i just tested it. but i'll rewrite it to include shell so the ones in This PC folder view are expanded too.

EDIT:
fixed is attached
 

Attachments

My Computer

System One

  • OS
    Windows 11 Pro
yeah its the shell. i'll write it to add those. if you pin Downloads etc to quick access it does work though. i just tested it. but i'll rewrite it to include shell so the ones in This PC folder view are expanded too.

EDIT:
fixed is attached
This fix does expand the Downloads folder but it creates more problems that are much more severe than the solution itself.

In my tests, on my laptop:
1/ The expansion is now happening to EVERY single folder that I click on, regardless whether in the Quick access or elsewhere.
2/ A single click is behaving like a double click - everything is expanding automatically.
3/ The screen always returns back to what current folder is clicked (selected) when scrolling up or down - this is a major issue.

Thank you for trying, but I'm not going to be able to take benefit out of this script.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    HP
Go to File (Windows) Explorer and click the 3 dots on the toolbar to the right of View. Choose Options.
Make sure the radio button Double Click to open an item is selected
 

My Computer

System One

  • OS
    Windows 11 Pro Insider 64 bit 25H2 26200.5742
    Computer type
    PC/Desktop
    Manufacturer/Model
    Gigabyte Z390 UD
    CPU
    Intel Core i7 9700K 3.60
    Motherboard
    Gigabyte Z390 UD
    Memory
    16 GB
    Graphics Card(s)
    nVidia GEForce RTX 2060 Super
    Sound Card
    onboard
    Monitor(s) Displays
    Two 27" Dell 4K monitors
    Screen Resolution
    3840 x 2160
    Hard Drives
    M.2 NVME SSD, 500 GB; Two 2TB Mechanical HDD's
    PSU
    850w PSU
    Case
    Cyberpower PC
    Cooling
    Water cooled
    Keyboard
    Backlit Cyberpower gaming keyboard
    Mouse
    Backlit Cyberpower gaming mouse
    Internet Speed
    1 GB mbps
    Browser
    Brave
    Antivirus
    Windows Security
been playing with the ahk script i made a bit more and i have it expanding properly, but it does not collapse properly. i'll keep toying with it.

i'll leave this here for anyone that wants to play with it as well. to make it collapse properly, you have to to up directories.

Code:
; Expand/collapse Explorer navigation pane

#Persistent
SetTimer, SyncExplorerTree, 1000
global LastPath := ""

SyncExplorerTree:
    for window in ComObjCreate("Shell.Application").Windows
    {
        try {
            if (InStr(window.FullName, "explorer.exe")) {
                CurrentPath := window.LocationURL
                ; Normalize path
                CurrentPath := RegExReplace(CurrentPath, "file:///", "")
                CurrentPath := StrReplace(CurrentPath, "/", "\")
                
                if (CurrentPath != LastPath) {
                    hwnd := window.HWND
                    
                    ; If expand
                    if (InStr(CurrentPath, LastPath)) {
                        ; Expand and select current folder
                        window.Document.SelectItem(window.Document.Folder, 1)
                    }
                    ; If collapse
                    else if (InStr(LastPath, CurrentPath)) {
                        ; Collapse current folder node
                        hTV := GetTreeViewHandle(hwnd)
                        hItem := GetSelectedItem(hTV)
                        if (hItem) {
                            DllCall("SendMessage", "Ptr", hTV, "UInt", 0x1102, "Ptr", 0x0001, "Ptr", hItem)
                        }
                        ; Reselect current folder
                        window.Document.SelectItem(window.Document.Folder, 0)
                    }
                    
                    LastPath := CurrentPath
                }
            }
        }
    }
return

; get TreeView handle
GetTreeViewHandle(hwnd) {
    ControlGet, hTV, Hwnd,, SysTreeView321, ahk_id %hwnd%
    return hTV
}

; get currently selected TreeView item
GetSelectedItem(hTV) {
    return DllCall("SendMessage", "Ptr", hTV, "UInt", 0x110A, "Ptr", 0x0009, "Ptr", 0)
}
 

My Computer

System One

  • OS
    Windows 11 Pro
Hi everyone,

I'll start with a confession: I registered to this forum specifically to share this solution. That's how much this bug has been driving me crazy. The original post is two years old and people were still complaining about it in late 2025 — so I know I'm not alone in this particular circle of hell.

After years of silently suffering, I decided to actually investigate. With the help of several AI assistants (shoutout to Claude and Copilot — they argued a lot but eventually got there), a hex editor, a forensic LNK parser, and more trial and error than I care to admit, we found the root cause.

The culprit: Windows 11 stopped setting a flag called DisableKnownFolderTracking in newly created shortcuts. Without it, Explorer resolves the target through the shell namespace instead of the filesystem, which completely bypasses tree expansion. Windows 10 set this flag correctly. Windows 11 doesn't.

The fix: a small Python script (Python 3, no dependencies) that patches the two affected bits directly in the shortcut's binary header. That's it — no registry hacks, no third-party tools, no "Show all folders" nuclear option.

One important caveat: set your shortcut icon before patching, and don't touch it afterwards — editing the icon via Properties rewrites the header and removes the patch.

Usage is simple:

# Patch in place
python shortcut_patcher.py "MyShortcut.lnk"

# Or patch to a new file
python shortcut_patcher.py "MyShortcut.lnk" "MyShortcut_fixed.lnk"

I'm attaching the script (shortcut_patcher.py) and instructions (shortcut_patcher.txt) in a zip file.

This is free to use, modify, and integrate into a more user-friendly tool for people who don't use Python — a GUI wrapper, a shell extension, whatever. I'd just love to know if that happens!

Hope this saves someone else a few years of frustration. :-)

And let me know if that does work for you.
 

Attachments

My Computer

System One

  • OS
    Windows 11 Entreprise N 64 bits 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    AMD Ryzen 5 5600 6-Core Processor 3.50 Ghz
    Memory
    32 Gb
Hi everyone,

I'll start with a confession: I registered to this forum specifically to share this solution. That's how much this bug has been driving me crazy. The original post is two years old and people were still complaining about it in late 2025 — so I know I'm not alone in this particular circle of hell.

After years of silently suffering, I decided to actually investigate. With the help of several AI assistants (shoutout to Claude and Copilot — they argued a lot but eventually got there), a hex editor, a forensic LNK parser, and more trial and error than I care to admit, we found the root cause.

The culprit: Windows 11 stopped setting a flag called DisableKnownFolderTracking in newly created shortcuts. Without it, Explorer resolves the target through the shell namespace instead of the filesystem, which completely bypasses tree expansion. Windows 10 set this flag correctly. Windows 11 doesn't.

The fix: a small Python script (Python 3, no dependencies) that patches the two affected bits directly in the shortcut's binary header. That's it — no registry hacks, no third-party tools, no "Show all folders" nuclear option.

One important caveat: set your shortcut icon before patching, and don't touch it afterwards — editing the icon via Properties rewrites the header and removes the patch.

Usage is simple:

# Patch in place
python shortcut_patcher.py "MyShortcut.lnk"

# Or patch to a new file
python shortcut_patcher.py "MyShortcut.lnk" "MyShortcut_fixed.lnk"

I'm attaching the script (shortcut_patcher.py) and instructions (shortcut_patcher.txt) in a zip file.

This is free to use, modify, and integrate into a more user-friendly tool for people who don't use Python — a GUI wrapper, a shell extension, whatever. I'd just love to know if that happens!

Hope this saves someone else a few years of frustration. :-)

And let me know if that does work for you.

I'm trying to verify this patch, but I'm not having any success.

I created a folder shortcut on my desktop that opens Downloads. As expected, it opens to Downloads, but does not expand the Navigation pane to Downloads. I then used the Python script to create a new patched shortcut and I can see, using Beyond Compare, that "9B 00" has been changed to "DB 40". However, I see no change in behavior.

I did not edit any shortcut properties after patching. The "Target" property is set to my Downloads folder. I also tested again with the "Start in" folder also set to my Downloads folder, but that made no difference. What am I missing?
 

My Computer

System One

  • OS
    Windows 10/11
    Computer type
    Laptop
    Manufacturer/Model
    Acer

My Computers

System One System Two

  • OS
    Windows 11 25H2 Pro Build 26200
    Computer type
    PC/Desktop
    Manufacturer/Model
    MSI PRO ADL-U Cubi 5 (MS-B0A8)
    CPU
    i3-1215U
    Memory
    8GB
    Monitor(s) Displays
    Sony 43" 4k TV
    Screen Resolution
    3840x2160
    Hard Drives
    250GB NVMe M.2 PCIe Gen 3 SSD
    PSU
    External 65W
    Case
    Mini PC
    Browser
    FireFox
    Antivirus
    MS
  • Operating System
    Windows 11 Pro 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 3070 SFF
    CPU
    Intel i3-9100
    Memory
    16GB DDR4
    Monitor(s) Displays
    Dell S2721
    Screen Resolution
    3840 x 2160
    Hard Drives
    Samsung 500GB nvMe
    Case
    Dell small form factor
    Keyboard
    Cherry mechanical (Blue)
    Mouse
    Microsoft
    Antivirus
    MS Defender
I'm trying to verify this patch, but I'm not having any success.

I created a folder shortcut on my desktop that opens Downloads. As expected, it opens to Downloads, but does not expand the Navigation pane to Downloads. I then used the Python script to create a new patched shortcut and I can see, using Beyond Compare, that "9B 00" has been changed to "DB 40". However, I see no change in behavior.

I did not edit any shortcut properties after patching. The "Target" property is set to my Downloads folder. I also tested again with the "Start in" folder also set to my Downloads folder, but that made no difference. What am I missing?
what it appears to be doing is changing the shell: locations to the actual path (shell: Downloads > C:\Users\Username\Downloads), as that will allow them to expand properly when launched. the issue here is that can cause other issues but also replacing the Shell: dirs with the custom paths sometimes still does not expand them when opened from This PC and not from the custom shortcut directly.

@LesFerch
i have recreated what i believe his python is supposed to be doing via powershell:

save this as Fix-ExplorerShortcut.ps1
Code:
param(
    [Parameter(Mandatory = $false)]
    [string]$TargetPath,

    [Parameter(Mandatory = $false)]
    [string]$ShortcutPath,

    [switch]$PatchExistingOnly
)

function New-TrackedShortcut {
    param(
        [Parameter(Mandatory = $true)]
        [string]$TargetPath,

        [Parameter(Mandatory = $true)]
        [string]$ShortcutPath
    )

    # 1) Create a normal shortcut (set icon BEFORE patching if you want a custom one)
    $shell = New-Object -ComObject WScript.Shell
    $sc = $shell.CreateShortcut($ShortcutPath)
    $sc.TargetPath = $TargetPath
    $sc.WorkingDirectory = (Split-Path $TargetPath -Parent)
    # Example: set icon here if desired
    # $sc.IconLocation = "$env:SystemRoot\System32\shell32.dll,3"
    $sc.Save()

    # 2) Patch the header bits
    Patch-LnkHeader -Path $ShortcutPath
}

function Patch-LnkHeader {
    param(
        [Parameter(Mandatory = $true)]
        [string]$Path
    )

    if (-not (Test-Path $Path)) {
        Write-Warning "File not found: $Path"
        return
    }

    # Read all bytes
    $bytes = [System.IO.File]::ReadAllBytes($Path)

    $offset1 = 0x15  # first affected byte
    $offset2 = 0x16  # second affected byte

    # Bitmasks to set (OR them in)
    $mask1 = 0x10
    $mask2 = 0x02

    if ($bytes.Length -le [Math]::Max($offset1, $offset2)) {
        Write-Warning "File too small to patch: $Path"
        return
    }

    $bytes[$offset1] = $bytes[$offset1] -bor $mask1
    $bytes[$offset2] = $bytes[$offset2] -bor $mask2

    [System.IO.File]::WriteAllBytes($Path, $bytes)

    Write-Host "Patched: $Path"
}

# ----------------- Entry logic -----------------

if ($PatchExistingOnly) {
    if (-not $ShortcutPath) {
        Write-Error "When using -PatchExistingOnly, you must pass -ShortcutPath (file or folder)."
        exit 1
    }

    if (Test-Path $ShortcutPath -PathType Container) {
        Get-ChildItem -Path $ShortcutPath -Filter *.lnk -Recurse | ForEach-Object {
            Patch-LnkHeader -Path $_.FullName
        }
    }
    else {
        Patch-LnkHeader -Path $ShortcutPath
    }
}
else {
    if (-not $TargetPath -or -not $ShortcutPath) {
        Write-Error "Provide -TargetPath and -ShortcutPath, or use -PatchExistingOnly with -ShortcutPath."
        exit 1
    }

    New-TrackedShortcut -TargetPath $TargetPath -ShortcutPath $ShortcutPath
}

then run this (fix the paths obviously) to create a shortcut. i did it for Downloads and it works when opened... it expands the nav pane. but when it tried to replace the This PC folder Downloads (shell: Downloads) with this shortcut, it no longer expands the nav pane:

Code:
.\Fix-ExplorerShortcut.ps1 `
    -TargetPath "C:\Some\Folder" `
    -ShortcutPath "$env:USERPROFILE\Desktop\Some Folder.lnk"
 
Last edited:

My Computer

System One

  • OS
    Windows 11 Pro
@LesFerch You’re right — I was able to reproduce exactly what you described. I never use desktop shortcuts to folders since I never go to the desktop while working, so I hadn’t tested that scenario until now. If the shortcut is launched from the desktop, it indeed doesn’t work (the navigation pane stays on Home).
It only works when the shortcut is run from an already open File Explorer window (explorer.exe). You can even try it with the patched shortcut on your desktop: open Windows File Explorer, navigate to Desktop, then double‑click the patched shortcut — it will expand correctly.

I personally keep the shortcuts I need in a dedicated folder and pin that folder to the Quick Access area in Explorer. Do not pin shortcuts directly into Quick Access though, because those will never expand when clicked (they are actually replaced with standard shortcuts since you cannot point to a shortcut with a shortcut).

But even using a patched shortcut from the desktop is already far superior to using a non‑patched one. With the patched shortcut, any navigation into a subfolder of the target folder will trigger the tree expansion in the navigation pane, which never happens with a non‑patched shortcut. When using the CTRL+SHIFT+E trick in File Explorer after launching a patched shortcut from the desktop, Explorer expands to the actual path without creating that odd extra tree that doesn’t follow your navigation.

@dacrone So the patch worked on your machine as well?
when it tried to replace the This PC folder Downloads (shell: Downloads) with this shortcut, it no longer expands the nav pane
I didn’t quite understand what you meant by that… But if you modify anything in a patched shortcut, it stops working (no more expansion) and the shortcut becomes impossible to patch again. You need to patch a freshly created shortcut each time. However, you can move or rename a patched shortcut — that doesn’t cause any issues.
 
Last edited:

My Computer

System One

  • OS
    Windows 11 Entreprise N 64 bits 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    AMD Ryzen 5 5600 6-Core Processor 3.50 Ghz
    Memory
    32 Gb
@LesFerch You’re right — I was able to reproduce exactly what you described. I never use desktop shortcuts to folders since I never go to the desktop while working, so I hadn’t tested that scenario until now. If the shortcut is launched from the desktop, it indeed doesn’t work (the navigation pane stays on Home).
It only works when the shortcut is run from an already open File Explorer window (explorer.exe). You can even try it with the patched shortcut on your desktop: open Windows File Explorer, navigate to Desktop, then double‑click the patched shortcut — it will expand correctly.

I personally keep the shortcuts I need in a dedicated folder and pin that folder to the Quick Access area in Explorer. Do not pin shortcuts (or folders) directly into Quick Access, because those will never expand when clicked.

But even using a patched shortcut from the desktop is already far superior to using a non‑patched one. With the patched shortcut, any navigation into a subfolder of the target folder will trigger the tree expansion in the navigation pane, which never happens with a non‑patched shortcut.When using the CTRL+SHIFT+E trick after launching a patched shortcut, Explorer expands to the actual path without creating that odd extra tree that doesn’t follow your navigation.

@dacrone So the patch worked on your machine as well?

I didn’t quite understand what you meant by that… But if you modify anything in a patched shortcut, it stops working (no more expansion) and the shortcut becomes impossible to patch again. You need to patch a freshly created shortcut each time. However, you can move or rename a patched shortcut — that doesn’t cause any issues.
No, I replicated your python script’s functions to a powershell script. I can create the shortcuts and they work as stated, but if you use the reg or winaero tweaker to place that shortcut into the folders category in This PC, it doesn’t work anymore. That doesn’t alter the shortcut but apparently won’t read the shortcut either.. but instead read the actual path, which doesn’t expand.
I’m reworking my ahk since this has been resurrected. I’ve made a little progress with it and will continue to play with it as time permits.
 

My Computer

System One

  • OS
    Windows 11 Pro
No, I replicated your python script’s functions to a powershell script. I can create the shortcuts and they work as stated, but if you use the reg or winaero tweaker to place that shortcut into the folders category in This PC, it doesn’t work anymore. That doesn’t alter the shortcut but apparently won’t read the shortcut either.. but instead read the actual path, which doesn’t expand.
I’m reworking my ahk since this has been resurrected. I’ve made a little progress with it and will continue to play with it as time permits.
OK, that's a whole different subject. And my solution is probably not a solution to the original post either, which is again something else and closer to the "run shortcut from the desktop issue". I think in your case, you are stuck with the same issue as well.

It's a complicated subject, because Windows 11 behavior is also different when you navigate in folders nested in a library (like My Documents or Downloads) or not.

My solution works from within the File Explorer. It also improves the behavior when launching the shortcut from outside the File Explorer, especially for folders nested in libraries, but it won't expand to the target right away in that case.

In your case and the "open from desktop case", wouldn't sending Ctrl+Shift+E with AutoHotKey after an explorer windows is launched solve the issue?
 
Last edited:

My Computer

System One

  • OS
    Windows 11 Entreprise N 64 bits 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    AMD Ryzen 5 5600 6-Core Processor 3.50 Ghz
    Memory
    32 Gb

Latest Support Threads

Back
Top Bottom