Customize Your Shortcuts to Folders

Topics Computer on April 30th, 2007

In , you can create a to a folder (for example, by right-click and dragging the folder from the Explorer onto the desktop and selecting “create here”). Then, when you double-click on the , Explorer opens back up and displays the contents of that folder. There are four default characteristics when this happens:

1. It will open a single pane window (no Explorer bar).
2. It will allow the user to navigate out of the folder (i.e. to the folder’s parent and beyond).
3. The default is for none of the items in a folder to yet be selected.
4. If there is already an open Explorer window displaying that folder, then the will switch to that existing view, as opposed to opening a new one.
All of these behaviors can be customized.

The first step is to convert the target from invoking the Explorer to explicitly invoking it. If you examine the properties of a folder , as described above (right-click and select Properties), you’d see that the Target field is the name of the folder.

Normally, for a , the target is the name of a program to execute, but in this case it is just a folder name. When sees that it is just a folder name, it assumes that you really want to open the Explorer, passing it the name of that folder. In other words, having a target of just “SomeFolder” is the equivalent of a target that says “%windir%\explorer.exe SomeFolder”. (The “%windir%” is automatically replaced with wherever is installed.) So, click inside the target field and paste “%windir%\explorer.exe ” (without the quotes, but with the trailing space) in front of the folder name.

The next step is to add certain “command-line switches” that Explorer understands. These switches are as follows:

. /n forces it to open a new window, even if it duplicates a window that is already open.
. /e uses Explorer view (multi-paned).
. /root,X restricts Explorer to showing only the contents of file folder X (and its sub-).
. /select,Y automatically selects Y (either a file or folder).
These switches can be used in any combination, in any order. To use multiple switches, separate them with commas (but no spaces). for example, a target of “%windir%\explorer.exe /n,/e,c:\temp\demo” tells Explorer to open a new window to show the contents of C:\temp\demo, even if there is already a window open on that folder, and to make the Explorer bar visible. The next example uses all four switches:

/n,/e,/root,c:temp,/select,c:temp\demo\quick.txt

Note: The /root switch has no effect if the user has admin privileges.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • StumbleUpon
  • Facebook
  • Google
  • Furl
  • Live
  • MisterWong.DE
  • NewsVine
  • Reddit
  • Slashdot
  • Technorati
  • YahooMyWeb
  • BlinkList
  • description
  • Fark
  • Netvouz
  • Spurl
  • MisterWong
  • Webnews.de
  • E-mail this story to a friend!

Tags:, , , , , , , , , , , ,

Related posts

One Response to “Customize Your Shortcuts to Folders”

  1. Comment by StumbleUpon » Your page is now on StumbleUpon!

    [...] Your page is on StumbleUpon [...]

Leave a Reply