In Windows 7, user cannot pin a Computer, My Documents, My Music, My Pictures, My Videos, Games, Recycle Bin or any folder and drive root to Windows Taskbar directly, with the exception of Control Panel. If user attempts to drag and drop the shortcut to a folder to Task Bar, it can’t be dropped into Taskbar with forbidden icon, or been shown option to “Pin to Windows Explorer” instead. Furthermore, when right click on a folder, there is no right click menu item of “Pin to Taskbar” too.

Pin to Windows Explorer may work for some users, who don’t mind have to right click on Windows Explorer icon in Taskbar, and then select the pinned folder or item on top of the Jump List. For Windows 7 users who want the convenient to instantly open a folder such as My Documents by one-click on Task Bar, use the following trick, which similar to change default opening folder of Windows Explorer, to add the favorite folders to Windows 7 TaskBar.

  1. Right click on Desktop, and select New -> Shortcut.

    Create New Shortcut

  2. Visit list of available Explorer.exe special object switches to determine the shortcut value that should be entered. For example, if you want to pin Computer (or My Computer), then enter the following string as the location of the item:

    %SystemRoot%\explorer.exe /E,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}

    Location of New Shortcut Item

    Click on Next when done.

  3. Enter a new for the shortcut. For example, Computer.

    Name the New Shortcut

    Click on Finish when done.

  4. A new shortcut will be placed on desktop. Optionally, right click on the shortcut, select Properties. Then click on Change Icon on Shortcut tab to change the icon of the shortcut (which will be used when pinned to Task Bar too).

    Change Icon

    Tip: Most of the default folder related icons are stored inside %windir%\System32\shell32.dll system file.

    Select New Icon

  5. Now, right click on shortcut on desktop, and click on the Pin to Taskbar on right click menu to pin the folder to Windows 7 Taskbar.

    Pin Folder to Taskbar

Folder on Windows 7 Taskbar

Voila, now a folder can be pinned and directly access from Windows 7 Taskbar. To unpin any of these folders, just right click on its button on Taskbar, and select “Unpin this program from taskbar”.