"12 Folder" From Here!

Published 19 September 07 04:44 AM | jamesbl 

Here's my cheap inexpensive tribute to Raymond (no, not you Raymond, the OTHER Raymond that had a piano in his office while working on DX1, ahh the good ol' days!).

I got tired of opening a command prompt and manually navigating to the C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN folder each time I wanted to poke around (i.e. usually run some form of stsadm or psconfig command) so I whipped up a registry file that I deploy on all of my SharePoint machines.  Nothing fancy, but useful to me and perhaps you, too.

Save the following as a .REG file and import it:

Windows Registry Editor Version 5.00
 
[HKEY_CLASSES_ROOT\Folder\shell\Open12Folder]
@="12 Folder"
 
[HKEY_CLASSES_ROOT\Folder\shell\Open12Folder\Command]
@="cmd.exe /k cd \"%%CommonProgramFiles%%\\microsoft shared\\web server extensions\\12\\BIN\""
 
[HKEY_CLASSES_ROOT\Folder\shell\OpenNew]
@="Command Prompt"
 
[HKEY_CLASSES_ROOT\Folder\shell\OpenNew\Command]
@="cmd.exe /k cd %1"

Now can I right click on an open explorer folder or any desktop shell folder (My Computer, My Network Places, My Documents) and simply select "12 Folder" from the context menu and I have a command prompt at my disposal waiting for me in the \BIN directory.  As you probably noticed, you also get the "Command Prompt" here for free, too.

Yes, I know I could have just added this directory to my path, but that would require me right clicking on My Computer... selecting Properties... clicking the Advanced tab... clicking the Environment Variables button... selecting the Path variable... clicking the Edit button... blah blah blah, I'm already tired just typing it... :)  The shell rules, let's leave it at that.

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Links (9/20/2007) « Steve Pietrek’s SharePoint Stuff said on September 20, 2007 8:38 PM:

PingBack from http://stevepietrekweblog.wordpress.com/2007/09/20/links-9202007/

# Andrew Connell [MVP MOSS] said on September 26, 2007 8:35 AM:

Learning something new every day!

# Mirrored Blogs said on September 26, 2007 9:05 AM:

[via Thoughts about IIS (and now SharePoint) ] One of the aspects I love about teaching development classes

# SharePoint, SharePoint and stuff said on October 8, 2007 8:48 AM:

Suche Forrester: Microsoft Drives A Wedge Between High And Low-End Enterprise Search Artikel auf MSDN

# SharePointPodcast.de said on October 12, 2007 3:31 PM:

Direkter Download: SPPD-078-2007-10-12 Aktuell Microsoft MVP Award Runde 10 XTOPIA Windows SharePoint

# SharePoint, SharePoint and stuff said on October 12, 2007 3:37 PM:

Direkter Download: SPPD-078-2007-10-12 Aktuell Microsoft MVP Award Runde 10 XTOPIA Windows SharePoint

# Mirrored Blogs said on January 9, 2008 7:59 PM:

Direkter Download: SPPD-078-2007-10-12 Aktuell Microsoft MVP Award Runde 10 XTOPIA Windows SharePoint

# SharePoint Thinks, Links and Clinks said on April 22, 2008 1:27 PM:

Thinks If you have been using Microsoft SharePoint technologies for a while, you are wise to the ways

# Mutaz Abu-Ghazaleh said on November 9, 2008 10:29 PM:

here is a very handy registry edit that will add a "Command prompt" and "12 Folder" commands to your

# SharePointPodcast said on June 9, 2009 7:11 AM:

Direkter Download: SPPD-078-2007-10-12 Aktuell Microsoft MVP Award Runde 10 XTOPIA Windows SharePoint

Leave a Comment

(required) 
(optional)
(required) 

  
Enter Code Here: Required

Search

This Blog

Syndication

Page view tracker