Simpliguides

Simpliguides › Windows

How to pin a folder to the Windows 11 taskbar

Windows 10 let you drag a folder onto the taskbar and pin it there. Windows 11 doesn't: drag a folder down and the pointer shows a no-entry symbol, and a folder's right-click menu has no Pin to taskbar line. There's no setting that brings this back. What does work is a shortcut that tells File Explorer to open the folder, because Windows treats that as a shortcut to an app, and apps can be pinned. This guide builds that shortcut and pins it.

What you'll need: A PC running Windows 11. No administrator account is needed. The folder can be on the PC, on an external drive or on a network share, as long as it's there when you click the icon.

1

Copy the folder's path

Open File Explorer and find the folder you want on the taskbar. Right-click it and click Copy as path. Windows copies the folder's full location, wrapped in quotation marks, ready to paste.

If you don't see Copy as path, click the folder once to select it, then hold down Ctrl and Shift and press C. That does the same thing.
2

Start a new shortcut on the desktop

Right-click an empty part of the desktop, point to New, then click Shortcut. A window titled Create Shortcut opens, asking for the location of the item.

3

Type the location

In the box, type the text below, including the space at the end:

explorer.exe

Then hold down Ctrl and press V to paste the path you copied in step 1. The finished line looks like this, with your own folder in place of the example:

explorer.exe "C:\Users\Sam\Documents\Invoices"

Click Next.

The quotation marks matter if the path has a space in it anywhere, which most do. Copy as path adds them for you. If you typed the path yourself, add them.
4

Name the shortcut

Windows suggests the name explorer.exe. Delete that and type the folder's name, or whatever you want to see when you rest the pointer on the taskbar icon. Click Finish. The shortcut appears on the desktop with File Explorer's icon.

5

Give it a folder icon

Left as it is, the pinned icon looks identical to the File Explorer button already on the taskbar. Right-click the new shortcut, click Properties, and on the Shortcut tab click Change Icon…. In the box at the top of the window that opens, replace whatever is there with the line below and press Enter:

%SystemRoot%\System32\imageres.dll

Click a yellow folder icon from the grid, click OK, then click OK again to close Properties.

If Windows says the file contains no icons, the path was mistyped. Try again, or use %SystemRoot%\System32\shell32.dll instead, which has a plainer folder icon.
6

Pin it to the taskbar

Right-click the shortcut and click Pin to taskbar. If that line isn't in the menu, click Show more options first; Pin to taskbar is in the longer menu that appears. The folder icon joins the right-hand end of the pinned icons.

7

Test it and tidy up

Click the new taskbar icon. The folder opens in File Explorer. You can now delete the shortcut from the desktop, because the taskbar keeps its own copy. Drag the icon left or right along the taskbar to put it where you want it.

Variations

Pin it inside the File Explorer button instead

This is the route Windows 11 supports without any workaround. In File Explorer, right-click the folder and click Pin to Quick access. From then on, right-click the File Explorer button on the taskbar and the folder is listed under Pinned, one click away. It takes two clicks rather than one, but there's no shortcut to build and no icon to change. To remove it, open the same menu and click the pin icon next to the folder's name.

Pin a whole drive, or a network folder

The same shortcut works for anything File Explorer can open. For a drive, the location is the drive letter:

explorer.exe D:\

For a folder on a network share, use the share's address:

explorer.exe "\\server\shared\Projects"

If the drive is unplugged or the share is unreachable, clicking the icon opens an error rather than the folder, and the pin stays on the taskbar until you unpin it.

Pin it to the Start menu instead

Windows 11 does let you pin a folder to Start with no workaround. In File Explorer, right-click the folder and click Pin to Start. It appears as a tile in the Pinned section at the top of the Start menu.

Troubleshooting

Pin to taskbar isn't in the menu, even under Show more options

The shortcut's target doesn't start with explorer.exe. This happens if you made the shortcut by right-clicking the folder and choosing Create shortcut, which points straight at the folder, and Windows won't pin that. Right-click the shortcut, click Properties, and on the Shortcut tab look at the Target box. Click into it, press Home to go to the start, type explorer.exe and a space in front of the path, and click OK. Pin to taskbar appears on the next right-click.

Clicking the icon opens This PC or Documents, not my folder

File Explorer falls back to a default location when it can't find the path it was given. Either the path has a typo, the quotation marks are missing around a path containing a space, or the folder has since been moved or renamed. Right-click the taskbar icon, right-click the folder's name in the menu that pops up, and click Properties to check and correct the Target box.

The open window appears under the File Explorer button, not under my icon

That's how this workaround behaves, and there's no setting to change it. The pinned icon starts File Explorer, so the window it opens groups with any other File Explorer windows under the main File Explorer button. Clicking your pinned icon again opens a second copy of the folder rather than switching to the one already open.

I changed the icon, but the taskbar still shows File Explorer's

The icon was changed after the shortcut was pinned, and the taskbar's copy kept the old one. Right-click the taskbar icon, click Unpin from taskbar, then pin the desktop shortcut again. If you'd already deleted the desktop shortcut, make it again from step 2.

Advertisement

Need a calculator rather than a guide? Try Simplicalcs →