{"id":286,"date":"2009-03-03T20:41:17","date_gmt":"2009-03-04T00:41:17","guid":{"rendered":"http:\/\/mattfife.net\/wordpress\/?p=286"},"modified":"2009-03-03T20:41:17","modified_gmt":"2009-03-04T00:41:17","slug":"open-command-prompt-herein-vista-its-annoying","status":"publish","type":"post","link":"https:\/\/mattfife.com\/?p=286","title":{"rendered":"Open command prompt here&#8230;.in Vista it&#8217;s ANNOYING!"},"content":{"rendered":"<p>Just another way in which Microsoft just keeps breaking my productivity by making me fight their systems instead of making it easy to get real work done.\u00a0 In XP &#8211; there was a handy &#8220;Open command prompt here&#8230;&#8221; Powertoy that allowed you to right-click on a directory\/folder and get a command prompt at that location (no directory switching).\u00a0 But no such luck on Vista.\u00a0 Now add the pain of UAC and you need TWO kinds &#8211; &#8220;open a command prompt here&#8230;&#8221; and &#8220;open a command prompt here (in administrator mode)&#8230;&#8221;<\/p>\n<p>Well, here&#8217;s how to have BOTH:<\/p>\n<p><strong>&#8220;Open a command prompt here&#8230;&#8221; <\/strong>(courtesy <a href=\"http:\/\/www.petri.co.il\/add_command_prompt_here_shortcut_to_windows_explorer.htm\" target=\"_blank\">here<\/a>)<strong><br \/>\n<\/strong><\/p>\n<ol>\n<li><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal\"><\/span><span style=\"font-size: 12pt; font-family: 'Times New Roman','serif'\"><\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal\"><\/span>Open regedt32.exe\/registry editor<\/li>\n<li>Browse to: <span style=\"font-size: 10pt; font-family: 'Courier New'\">HKEY_LOCAL_MACHINE\/Software\/Classes\/Folder\/Shell<o:p><\/o:p><\/span><\/li>\n<li>Change the default REG_SZ string to whatever text you want to appear in the right-click menu. (such as:\u201cOpen command prompt here&#8230;\u201d without the quotes)<\/li>\n<li class=\"MsoNormal\"><span style=\"font-size: 12pt; font-family: 'Times New Roman','serif'\">Create      a new registry <strong>key <\/strong>type within your newly created command prompt shell named      &#8220;command,&#8221; and set the default string to:<br \/>\n<\/span><span style=\"font-size: 10pt; font-family: 'Courier New'\">cmd.exe \/k pushd %1<o:p><\/o:p><\/span><br \/>\n<span style=\"font-size: 12pt; font-family: 'Times New Roman','serif'\">You may need to add <strong>%SystemRoot%system32<\/strong> before the <strong>cmd.exe<\/strong> if the executable can&#8217;t be found. <o:p><\/o:p><\/span><\/li>\n<li class=\"MsoNormal\"><span style=\"font-size: 12pt; font-family: 'Times New Roman','serif'\">The      changes should take place immediately. Right click a folder and your new      menu item should appear.<br \/>\n<\/span><\/li>\n<\/ol>\n<p><strong>&#8220;Open Command Prompt here (admin mode)&#8230;&#8221;<\/strong><\/p>\n<ol>\n<li>Same as above &#8211; open Regedt32<\/li>\n<li>navigate to\/create [HKEY_CLASSES_ROOTDirectoryshellrunas]<\/li>\n<li>Set the default REG_SZ string for this key to &#8220;Administrator Command Prompt here&#8221;<\/li>\n<li>Add a new string value in the same same key called &#8220;NoWorkingDirectory&#8221; and make sure the string is set to &#8220;&#8221;<\/li>\n<li>Navigate to \/create [HKEY_CLASSES_ROOTDirectoryshellrunascommand]<\/li>\n<li>Set the default string to &#8220;cmd.exe \/k &#8220;pushd %L &amp;&amp; title Command Prompt&#8221;&#8221;<\/li>\n<li>Navigate to\/create [HKEY_CLASSES_ROOTDriveshellrunas]<\/li>\n<li>Set the default REG_SZ string &#8220;Administrator Command Prompt here&#8221;<\/li>\n<li>Create another new string value in the same key called &#8220;NoWorkingDirectory&#8221; and make sure the string is set to &#8220;&#8221;<\/li>\n<li>Navigate to\/creat [HKEY_CLASSES_ROOTDriveshellrunascommand]<\/li>\n<li>Set the default REG_SZ  string to &#8220;cmd.exe \/k &#8220;pushd %L &amp;&amp; title Command Prompt&#8221;&#8221;<\/li>\n<\/ol>\n<p>Or open notepad on AdminOpen.reg and copy\/paste the following into it (courtesy of <a href=\"http:\/\/www.petri.co.il\/vista_command_prompt.htm\" target=\"_blank\">here<\/a>):<br \/>\n<code><br \/>\nWindows Registry Editor Version 5.00<br \/>\n[HKEY_CLASSES_ROOTDirectoryshellrunas] @=\"Administrator Command Prompt here\" \"NoWorkingDirectory\"=\"\"<br \/>\n[HKEY_CLASSES_ROOTDirectoryshellrunascommand] @=\"cmd.exe \/k \"pushd %L &amp;&amp; title Command Prompt\"\"<br \/>\n[HKEY_CLASSES_ROOTDriveshellrunas] @=\"Administrator Command Prompt here\" \"NoWorkingDirectory\"=\"\"<br \/>\n[HKEY_CLASSES_ROOTDriveshellrunascommand] @=\"cmd.exe \/k \"pushd %L &amp;&amp; title Command Prompt\"\"<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just another way in which Microsoft just keeps breaking my productivity by making me fight their systems instead of making it easy to get real work done.\u00a0 In XP &#8211; there was a handy &#8220;Open command prompt here&#8230;&#8221; Powertoy that allowed you to right-click on a directory\/folder and get a command prompt at that location (no directory switching).\u00a0 But no such luck on Vista.\u00a0 Now add the pain of UAC and you need TWO kinds &#8211; &#8220;open a command prompt&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/mattfife.com\/?p=286\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-286","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4WECr-4C","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts\/286","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=286"}],"version-history":[{"count":0,"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts\/286\/revisions"}],"wp:attachment":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=286"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}