Adding “Open with Console” to the context menu…

The other day I discovered that if you hold down the ’shift’ key whilst right clicking on a directory in the Vista explorer you get a ’Open Command Window Here’ entry in your context menu. You can do this on XP with a PowerToy or some registry jiggery-pokery but it was nice to have it out of the box in Vista.

Having picked up on the excellent ‘Console‘ from Ben’s post the other day I was back to having to ‘cd’ into directories again so set about rummaging in the registry. So… the fruits of my labours:

Add the key – HKEY_CLASSES_ROOT\Directory\shell\open_console

Set the value of that to whatever you want to appear in the context menu e.g. Open Console Here

Under that add the key HKEY_CLASSES_ROOT\Directory\shell\open_console\Command

Set the value of that to the path to your console.exe with the parameters -d %1 In my case that gave me C:\Program Files\Console 2 Beta\Console2\console.exe -d %1

There you go… You should now have the context menu entry. Right click on a directory and open Console on that directory. Coupled with e – texteditor’s “Open as e Project’ you can have your rails set up running in a jiffy.

I would like to add the ability to open a few tabs in Console from the context menu with the same command and maybe start a server running in one and have another ready for commands but I can’t seem to get that going at the moment as I’m no great shakes in the registry. If anyone could point me in the right direction for that I’d be most obliged… In fact, it would be nice to open the ‘e’ project and the Console tabs avec server etc with the one context menu command, perhaps ‘Open Rails Environment’ but maybe I’m getting carried away there…

6 Responses to “Adding “Open with Console” to the context menu…”


  1. 1 Caelum May 26, 2007 at 9:46 am

    Had a problem with using the “console here” command when going to a folder with spaces in the path. So I changed the switch to -d “%1″ to get it to work. So C:\Program Files\Console 2 Beta\Console2\console.exe -d “%1″ to use your example.

    Just thought I would mention it for anyone who had the trouble and did not know how to fix it. Thanks for the top by the way :) .

  2. 2 David Johnston October 25, 2008 at 7:40 am

    You can get the same thing in your context menu when you right click in a folder window that’s already open. Just add the same entries to HKEY_CLASSES_ROOT\Directory\Background\shell in addition to HKEY_CLASSES_ROOT\Directory\shell.

    Also, if you like having those options only available when you have the shift key depressed (like the stock “Open Command Window Here” menu item, you can add a string value called “Extended” to HKEY_CLASSES_ROOT\Directory\shell\open_console and
    HKEY_CLASSES_ROOT\Directory\Background\shell\open_console

  3. 3 dude October 26, 2008 at 7:32 pm

    Would love to know how to achieve this on WinXP.

  4. 4 Alexwebmaster March 3, 2009 at 11:48 am

    Hello webmaster
    I would like to share with you a link to your site
    write me here preonrelt@mail.ru


  1. 1 Windows Vista Tweaks - USA-MS Trackback on May 10, 2007 at 11:26 am
  2. 2 chineseman Trackback on December 31, 2008 at 1:18 pm

Leave a Reply




a