: In most updated versions of Windows 11, you can drag an application's icon from your desktop directly onto the taskbar to pin it. How to Pin Folders and Drives
By default, Windows 11 does not allow you to drag a folder directly to the taskbar to pin it. You must use a "shortcut trick": windows 11 pin to taskbar
While you can't pin a specific text file or spreadsheet as its own individual icon easily, you can pin it to its parent application's "Jump List": How to Pin a Folder to Taskbar in Windows 11 : In most updated versions of Windows 11,
: Drag an app shortcut directly from your desktop and drop it onto the taskbar. : Right-click the folder or drive in File
: Right-click the folder or drive in File Explorer , select Show more options , and then Send to > Desktop (create shortcut) .
: Windows 11 doesn't support pinning folders directly. You must create a desktop shortcut first, right-click it, select Show more options , and then Pin to taskbar .