Wednesday, June 16, 2010

Pinning folders to the taskbar in Windows 7

The fact that Windows Explorer initially opens up the Libraries in Windows 7 really annoys, but there are lots places on the web that tell you how to fix it. For the record, take a look at the shortcut properties and change the Target to the following value to make it open at the Computer level:
%SystemRoot%\explorer.exe /e,::{20d04fe0-3aea-1069-a2d8-08002b30309d}

The thing that nobody seems able to figure out, however, is how to pin a shortcut to a folder to the Taskbar. I've seen all kinds of methods to do it, but they're all way more complicated than they need to be.  There are also 3rd party apps that will do it, but here's a simple way to do it without them:
  1. Create a new shortcut on your desktop (or anywhere, for that matter). To do this, right-click and select New | Shortcut.
  2. In the dialog that opens, paste the following value into the Location box, but replace z:\data with whatever folder you want to open: %SystemRoot%\explorer.exe z:\data
  3. Click Next, name your shortcut, and click Finish.
  4. If you want to change the icon, you can right-click on your new shortcut, choose Properties, and then click the Change Icon button.
  5. To pin your shortcut to the Taskbar, right-click on it and choose Pin to Taskbar.
  6. Once you've pinned it to the Taskbar, you can go ahead and delete the original shortcut if you want.