{"id":177,"date":"2019-11-15T19:20:57","date_gmt":"2019-11-15T23:20:57","guid":{"rendered":"http:\/\/notebook.chaopricha.com\/?p=177"},"modified":"2019-11-15T19:20:58","modified_gmt":"2019-11-15T23:20:58","slug":"adding-open-command-window-here-in-windows-10","status":"publish","type":"post","link":"https:\/\/notebook.chaopricha.com\/?p=177","title":{"rendered":"Adding Open Command Window Here in Windows 10"},"content":{"rendered":"\n<p>In Windows 7, you could be in a File Explorer window and hold Shift + Right click to bring up the &#8220;Open Command Window Here&#8221; in the context menu.  It&#8217;s very hand when I want to just be in the correct directory to do stuff without having to go through all the paths to get there.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"535\" height=\"485\" src=\"http:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2019\/11\/image-2.png\" alt=\"\" class=\"wp-image-178\" srcset=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2019\/11\/image-2.png 535w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2019\/11\/image-2-300x272.png 300w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2019\/11\/image-2-331x300.png 331w\" sizes=\"(max-width: 535px) 100vw, 535px\" \/><\/figure>\n\n\n\n<p>This feature is disabled in Windows 10 and you have &#8220;Open PowerShell window here&#8221; instead.  I don&#8217;t (but should someday) use Power Shell.  For now, I just want my good old command window.  <\/p>\n\n\n\n<p>There are instruction online to do a bunch of permission change via RegEdit and changing the flag of the cmd folder registry.  It was pretty involved and in the end I couldn&#8217;t really get it to work.  I then stumbled upon somebody&#8217;s comment on an easier way.<\/p>\n\n\n\n<p>Basically, just save this script as a .Reg file and then run it.  It&#8217;ll automatically add the registry key that allows the right click context that we need.  You might want to close all the File Explorer windows to get it to work.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Windows Registry Editor Version 5.00\n\n[HKEY_CLASSES_ROOT\\Directory\\Background\\shell\\normal_cmd]\n@=\"@shell32.dll,-8506\"\n\"Icon\"=\"cmd.exe,0\"\n\n[HKEY_CLASSES_ROOT\\Directory\\Background\\shell\\normal_cmd\\command]\n@=\"cmd.exe \/s \/k pushd \\\"%V\\\"\"\n\n[HKEY_CLASSES_ROOT\\Directory\\shell\\normal_cmd]\n@=\"@shell32.dll,-8506\"\n\"Icon\"=\"cmd.exe,0\"\n\n[HKEY_CLASSES_ROOT\\Directory\\shell\\normal_cmd\\command]\n@=\"cmd.exe \/s \/k pushd \\\"%V\\\"\"<\/code><\/pre>\n\n\n\n<p>Now when you Shift + Right click in a File Explorer, you&#8217;ll have &#8220;Open Command Window Here&#8221; back.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Windows 7, you could be in a File Explorer window and hold Shift + Right click to bring up the &#8220;Open Command Window Here&#8221; in the context menu. It&#8217;s very hand when I want to just be in the &hellip; <a href=\"https:\/\/notebook.chaopricha.com\/?p=177\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/notebook.chaopricha.com\/index.php?rest_route=\/wp\/v2\/posts\/177"}],"collection":[{"href":"https:\/\/notebook.chaopricha.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/notebook.chaopricha.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/notebook.chaopricha.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/notebook.chaopricha.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=177"}],"version-history":[{"count":1,"href":"https:\/\/notebook.chaopricha.com\/index.php?rest_route=\/wp\/v2\/posts\/177\/revisions"}],"predecessor-version":[{"id":179,"href":"https:\/\/notebook.chaopricha.com\/index.php?rest_route=\/wp\/v2\/posts\/177\/revisions\/179"}],"wp:attachment":[{"href":"https:\/\/notebook.chaopricha.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notebook.chaopricha.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=177"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notebook.chaopricha.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}