MSH: Open MSH Prompt Here Toy

Like the Windows XP Power Toy "Open Command Window Here", this utility installs a context menu item into the Windows Explorer context menu for drives and folders.  The install is a very simple affair.  It verifies that you have MSH installed first, then it creates four reg keys:
 
HKEY_CLASSES_ROOT\Directory\shell\msh
HKEY_CLASSES_ROOT\Directory\shell\msh\command
HKEY_CLASSES_ROOT\Drive\shell\msh
HKEY_CLASSES_ROOT\Drive\shell\msh\command
 
With the appropriate default values to launch an MSH prompt at the particular drive or directory.  There’s an MshHere.inf file floating around but INF files are so darn cryptic plus it suffers from a "hard-coded" path to msh.exe.  This installer grabs the location of msh.exe from the registry:
 
[Updated: 1/10/06 for Beta 3]
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSH\1\ShellIds\Microsoft.Management.Automation.msh
 
and uses that to form the command line for the command registry keys above.  Click here to download the MSI setup file.  When it begins to download, just select Run to install the utility.  If you would prefer to examine the Visual Studio 2005 solution, tweak it and then build a new MSI, click here to dowload a ZIP file containing the solution.
Advertisements
This entry was posted in Monad. Bookmark the permalink.

One Response to MSH: Open MSH Prompt Here Toy

  1. Lee says:

    This is really cool Keith — I saw it on the newsgroup. Let me know when you find a place to host the installer so I can point folks to it!Lee

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s