{"id":144,"date":"2009-10-22T06:12:46","date_gmt":"2009-10-22T13:12:46","guid":{"rendered":"http:\/\/domemtech.com\/?p=144"},"modified":"2013-11-09T12:05:50","modified_gmt":"2013-11-09T17:05:50","slug":"how-to-invoke-a-shell-on-a-directory-through-windows-explorer","status":"publish","type":"post","link":"http:\/\/165.227.223.229\/index.php\/2009\/10\/22\/how-to-invoke-a-shell-on-a-directory-through-windows-explorer\/","title":{"rendered":"How to invoke a shell on a directory through Windows Explorer"},"content":{"rendered":"<p>In the past, there used to be the Microsoft PowerToys for Windows XP which would add in the capability of invoking a Cmd shell on a directory through Windows Explorer. \u00c2\u00a0You could right click on the diretory, and it would have a pop-up item available to do just that. \u00c2\u00a0But, PowerToys is not supported for Vista. \u00c2\u00a0Instead, Microsoft added the capability directly into the OS. \u00c2\u00a0To execute a Cmd shell on a directory, hold the SHIFT key while doing a mouse right click, and select &#8220;Open Command Window Here&#8221;.<\/p>\n<p>Unfortunately, Cmd is not my favorite shell&#8211;if you can even call it that. \u00c2\u00a0I like using the Bourne-Again Shell (bash), which is available with the Cygwin package (http:\/\/cygwin.com). \u00c2\u00a0Here is a handy little Regedit script I developed which seems to do the trick.<\/p>\n<pre>Windows Registry Editor Version 5.00\r\n[HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\Folder\\shell\\Bash Prompt]\r\n@=\"Bash Prompt\"\r\n[HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\Folder\\shell\\Bash Prompt\\command]\r\n@=\"cmd \/k \\\"pushd %1 &amp;&amp; set CHERE_INVOKING=y &amp;&amp; c:\\\\cygwin\\\\bin\\\\bash.exe -il\\\"\"<\/pre>\n<p>NOTE: An updated version of this registry hack which uses mintty is available at <a href=\"http:\/\/codinggorilla.com\/code\/cs-mintty.reg\" target=\"_blank\">http:\/\/codinggorilla.com\/code\/cs-mintty.reg<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the past, there used to be the Microsoft PowerToys for Windows XP which would add in the capability of invoking a Cmd shell on a directory through Windows Explorer. \u00c2\u00a0You could right click on the diretory, and it would have a pop-up item available to do just that. \u00c2\u00a0But, PowerToys is not supported for &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/165.227.223.229\/index.php\/2009\/10\/22\/how-to-invoke-a-shell-on-a-directory-through-windows-explorer\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to invoke a shell on a directory through Windows Explorer&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/165.227.223.229\/index.php\/wp-json\/wp\/v2\/posts\/144"}],"collection":[{"href":"http:\/\/165.227.223.229\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/165.227.223.229\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/165.227.223.229\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/165.227.223.229\/index.php\/wp-json\/wp\/v2\/comments?post=144"}],"version-history":[{"count":0,"href":"http:\/\/165.227.223.229\/index.php\/wp-json\/wp\/v2\/posts\/144\/revisions"}],"wp:attachment":[{"href":"http:\/\/165.227.223.229\/index.php\/wp-json\/wp\/v2\/media?parent=144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/165.227.223.229\/index.php\/wp-json\/wp\/v2\/categories?post=144"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/165.227.223.229\/index.php\/wp-json\/wp\/v2\/tags?post=144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}