Wednesday, February 9, 2011

How to pin a document to the taskbar in Windows 7, instead of to the jump list of the corresponding application

When you drag a document to the taskbar in Windows 7, it will add that document to the jump list associated to the corresponding application (if the application is not there already, it places it there). The problem with it is that, to access the document, you need to right-click the application icon to show the jump list, and then click on the document. It takes too long. Sometimes you want to have super quick access to that one document (while we are at it, it may be worth mentioning that Win+1, Win+2 etc give access to items in the taskbar -- another very quick way of accessing them).

A basic solution is to create a shortcut for the application and add the corresponding document as an argument to the shortcut. See the steps below for details. This was elaborated from this page (here's a version with lots of screen shots).

- Go to document of interest, right-click on it, go to Properties, copy and paste its location, that is, its path;
- Drag the application icon (from, say, the Start Menu) to the Desktop to make a shortcut;
- Right-click on application shortcut, go to Properties, and paste, between quotes, the path to the file (see example below);
- Add, the the file path, the name of the file (because the location in its Properties window contains only the path, not the name, of the file).

Example:

When you open the shortcut properties, you may seem something like:

"C:/Program Files/Application.exe"

Make that
"C:/Program Files/Application.exe" "C:/Users/John/Documents/FileOfInterest.xxx"

PS: This assumes that the application takes a document full path and name as a first argument, and opens it. This is the case for most applications, but not necessarily all. In the case this is not true, you would have to find out how to open a file with that application from the command prompt (because using a shortcut is like running a command from the command prompt).