{"id":4813,"date":"2016-12-13T17:20:24","date_gmt":"2016-12-13T11:50:24","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=4813"},"modified":"2021-10-10T15:15:35","modified_gmt":"2021-10-10T09:45:35","slug":"cmd-here-windows-10-context-menu-add","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/cmd-here-windows-10-context-menu-add\/","title":{"rendered":"Add &#8220;Open command window here&#8221; to Context Menu in Windows 10"},"content":{"rendered":"<p>In the recent versions of Windows 10 (Creators Update and higher), the &#8220;Open Command Prompt here&#8221; context menu entry has been removed and is replaced by &#8220;Open PowerShell window here&#8221;.<\/p>\n<p>Microsoft, in an effort to bring the best command line experiences to the forefront for all power users, has made PowerShell the de facto command shell.<\/p>\n<p>This article tells you how to add &#8220;Open command window here&#8221; to right-click menu in Windows 10. Optionally, you can also remove the <a href=\"https:\/\/www.winhelponline.com\/blog\/remove-open-powershell-window-here-rightclick-windows-10\/\">Open PowerShell window here<\/a> from the context menu.<\/p>\n<p>You may also be knowing that since the preview build 14971, &#8220;Command Prompt&#8221; and &#8220;Command Prompt (Admin)&#8221; entries in the <kbd>Win<\/kbd>+<kbd>X<\/kbd> menu (the menu which appears when you right-click Start) were replaced with PowerShell links.<!--more--><\/p>\n<div class=\"qt\">\n<p><strong>Quoting Microsoft:<\/strong><\/p>\n<p>It (PowerShell) replaces Command Prompt (aka, \u201ccmd.exe\u201d) in the WIN + X menu, in File Explorer\u2019s File menu, and in the context menu that appears when you shift-right-click the whitespace in File Explorer. Typing \u201ccmd\u201d (or \u201cpowershell\u201d) in File Explorer\u2019s address bar will remain a quick way to launch the command shell at that location.<\/p>\n<p>For those who prefer to use Command Prompt, you can opt-out of the WIN + X change by opening Settings \u2192 Personalization \u2192 Taskbar, and turning \u201c<strong>Replace Command Prompt with Windows PowerShell in the menu when I right-click the Start button or press Windows key+X<\/strong>\u201d to &#8220;Off&#8221;.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-24224\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/cmd-replace-powershell-win-x.png\" alt=\"win x replace powershell with command prompt\" width=\"736\" height=\"322\" \/><\/p>\n<\/div>\n<p>Although you can run the old commands in the PowerShell window, you need to use the &#8220;.exe&#8221; suffix when running certain commands. For instance, running the &#8220;SC&#8221; command under the PowerShell window gives different results than what you get when running the same command from a regular Command Prompt shell.<\/p>\n<p>&#8220;<code>SC<\/code>&#8221; is understood as the alias for &#8220;<code>Set-Content<\/code>&#8221; PowerShell cmdlet. So to <a href=\"https:\/\/www.winhelponline.com\/blog\/how-to-remove-unwanted-service\/\">manage services<\/a> using the SC (SC.EXE) command in the PowerShell window, you&#8217;ll need to type the file extension &#8212; .EXE. Whereas the regular Command Prompt (CMD.exe) shell knows SC is nothing but SC.EXE, assuming no file of the same name and with a <code>.COM<\/code> extension exists in the path.<\/p>\n<h2>Add Command Prompt to the Context menu<\/h2>\n<p>If you&#8217;re fond of the old Command Prompt (<code>cmd.exe<\/code>), you can add the traditional &#8220;Open Command window here&#8221; option back in the context menu for file system folders and drives, using a Registry edit.<\/p>\n<h3>Method 1<\/h3>\n<p>This method creates a new menu item named &#8220;Open command window here&#8221; by adding the necessary context menu registry entries.<\/p>\n<ol>\n<li>Open Notepad.<\/li>\n<li>Copy the following lines and paste them in Notepad:\n<pre><code>Windows Registry Editor Version 5.00\r\n\r\n[HKEY_CLASSES_ROOT\\Directory\\shell\\cmdprompt]\r\n@=\"@shell32.dll,-8506\"\r\n\"NoWorkingDirectory\"=\"\"\r\n\r\n[HKEY_CLASSES_ROOT\\Directory\\shell\\cmdprompt\\command]\r\n@=\"cmd.exe \/s \/k pushd \\\"%V\\\"\"\r\n\r\n[HKEY_CLASSES_ROOT\\Directory\\Background\\shell\\cmdprompt]\r\n@=\"@shell32.dll,-8506\"\r\n\"NoWorkingDirectory\"=\"\"\r\n\r\n[HKEY_CLASSES_ROOT\\Directory\\Background\\shell\\cmdprompt\\command]\r\n@=\"cmd.exe \/s \/k pushd \\\"%V\\\"\"\r\n\r\n[HKEY_CLASSES_ROOT\\Drive\\shell\\cmdprompt]\r\n@=\"@shell32.dll,-8506\"\r\n\"NoWorkingDirectory\"=\"\"\r\n\r\n[HKEY_CLASSES_ROOT\\Drive\\shell\\cmdprompt\\command]\r\n@=\"cmd.exe \/s \/k pushd \\\"%V\\\"\"\r\n<\/code><\/pre>\n<\/li>\n<li>Save the file as &#8220;<code>cmdhere.reg<\/code>&#8220;<\/li>\n<li>Double-click the file to apply the settings to the registry.<\/li>\n<\/ol>\n<p>Alternately, you can download the following registry file:<\/p>\n<ul>\n<li><strong>Download <\/strong><a href=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/cmd-here-windows-10.zip\"><strong>cmd-here-windows-10.zip<\/strong><\/a><\/li>\n<\/ul>\n<p>This adds the &#8220;Open command window here&#8221; option to the right-click menu for folders and drives, which, when clicked, opens a Command Prompt window at the current drive or directory path.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4814\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/command-prompt-context-windows-10.png\" alt=\"add cmd here to right-click menu\" width=\"700\" height=\"292\" \/><\/p>\n<div class=\"qt\">To have the Command Prompt <a href=\"https:\/\/www.winhelponline.com\/blog\/add-icon-to-right-click-menu-windows-7\/\">context menu icon<\/a>, apply the <code>cmd-here-windows-10-with-icon.reg<\/code> file included in the zip file.<\/div>\n<div class=\"rp\"><strong>RELATED:<\/strong> <a href=\"https:\/\/www.winhelponline.com\/blog\/remove-open-powershell-window-here-rightclick-windows-10\/\">Remove &#8220;Open PowerShell window here&#8221; from the right-click menu<\/a><\/div>\n<hr \/>\n<h4>Additional Tip: Add &#8220;Open command window here&#8221; as an extended menu<\/h4>\n<p>If you want to show the &#8220;Open command window here&#8221; as an extended or hidden menu (to reduce clutter), use this registry file instead:<\/p>\n<pre><code>Windows Registry Editor Version 5.00\r\n\r\n[HKEY_CLASSES_ROOT\\Directory\\shell\\cmdprompt]\r\n@=\"@shell32.dll,-8506\"\r\n\"NoWorkingDirectory\"=\"\"\r\n\"Extended\"=\"\"\r\n\r\n[HKEY_CLASSES_ROOT\\Directory\\shell\\cmdprompt\\command]\r\n@=\"cmd.exe \/s \/k pushd \\\"%V\\\"\"\r\n\r\n[HKEY_CLASSES_ROOT\\Directory\\Background\\shell\\cmdprompt]\r\n@=\"@shell32.dll,-8506\"\r\n\"NoWorkingDirectory\"=\"\"\r\n\r\n[HKEY_CLASSES_ROOT\\Directory\\Background\\shell\\cmdprompt\\command]\r\n@=\"cmd.exe \/s \/k pushd \\\"%V\\\"\"\r\n\r\n[HKEY_CLASSES_ROOT\\Drive\\shell\\cmdprompt]\r\n@=\"@shell32.dll,-8506\"\r\n\"NoWorkingDirectory\"=\"\"\r\n\"Extended\"=\"\"\r\n\r\n[HKEY_CLASSES_ROOT\\Drive\\shell\\cmdprompt\\command]\r\n@=\"cmd.exe \/s \/k pushd \\\"%V\\\"\"\r\n<\/code><\/pre>\n<p>An &#8220;extended&#8221; menu appears only when you press and hold the <kbd>Shift<\/kbd> key when right-clicking on a folder or drive.<\/p>\n<hr \/>\n<h3>Method 2<\/h3>\n<p>The &#8220;Open command window here&#8221; context menu registry entry still exists by default in Windows 10. But it&#8217;s been made inactive with a registry value named <code>HideBasedOnVelocityId<\/code>.<\/p>\n<p>In this method, we change the <code>HideBasedOnVelocityId<\/code> registry value to <code>0<\/code> using the <code>HKEY_CURRENT_USER<\/code> override. This will enable the built-in and dormant &#8220;Open command window here&#8221; in the right-click menu.<\/p>\n<ol>\n<li>Open Notepad.<\/li>\n<li>Copy the following lines and paste them in Notepad:\n<pre><code>Windows Registry Editor Version 5.00\r\n\r\n[HKEY_CURRENT_USER\\SOFTWARE\\Classes\\Directory\\shell\\cmd]\r\n\"HideBasedOnVelocityId\"=dword:00000000\r\n\"Icon\"=hex(2):25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,6f,00,74,\\\r\n  00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,63,00,\\\r\n  6d,00,64,00,2e,00,65,00,78,00,65,00,2c,00,30,00,00,00\r\n\r\n[HKEY_CURRENT_USER\\SOFTWARE\\Classes\\Drive\\shell\\cmd]\r\n\"HideBasedOnVelocityId\"=dword:00000000\r\n\"Icon\"=hex(2):25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,6f,00,74,\\\r\n  00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,63,00,\\\r\n  6d,00,64,00,2e,00,65,00,78,00,65,00,2c,00,30,00,00,00\r\n<\/code><\/pre>\n<\/li>\n<li>Save the file as &#8220;<code>cmdhere2.reg<\/code>&#8220;<\/li>\n<li>Double-click the file to apply the settings to the registry.<\/li>\n<\/ol>\n<p>That&#8217;s it. This enables the &#8220;Open command window here&#8221; context menu item (with icon) for directories and drives.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-24226\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/cmdhere-context-menu.png\" alt=\"cmdhere context menu icon\" width=\"492\" height=\"285\" \/><br \/>\nThis method works only for the current user account &#8212; i.e., per-user account basis.<\/p>\n<p><em>(For the Windows 11 version of this article, check out the page <a href=\"https:\/\/www.winhelponline.com\/blog\/add-open-command-window-here-menu-windows-11\/\">How to Add \u201cOpen command window here\u201d Option in Windows 11<\/a>.)<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the recent versions of Windows 10 (Creators Update and higher), the &#8220;Open Command Prompt here&#8221; context menu entry has been removed and is replaced by &#8220;Open PowerShell window here&#8221;. Microsoft, in an effort to bring the best command line experiences to the forefront for all power users, has made PowerShell the de facto command &#8230; <a title=\"Add &#8220;Open command window here&#8221; to Context Menu in Windows 10\" class=\"read-more\" href=\"https:\/\/www.winhelponline.com\/blog\/cmd-here-windows-10-context-menu-add\/\" aria-label=\"Read more about Add &#8220;Open command window here&#8221; to Context Menu in Windows 10\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[8],"tags":[106,114],"class_list":["post-4813","post","type-post","status-publish","format-standard","hentry","category-windows-10","tag-command-prompt","tag-context-menu"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":4837,"url":"https:\/\/www.winhelponline.com\/blog\/remove-open-powershell-window-here-rightclick-windows-10\/","url_meta":{"origin":4813,"position":0},"title":"Remove Open PowerShell window here from Right-Click Menu in Windows 10","author":"Ramesh","date":"December 15, 2016","format":false,"excerpt":"With the Windows 10 Creators Update, the context menu option \"Open command window here\" is hidden by default, and is replaced by the \"Open PowerShell window here\" entry. Not just that. PowerShell replaces Command Prompt in the Win+X (Power User) menu as well. In an earlier post, we saw how\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"add cmd here to right-click menu","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/command-prompt-context-windows-10.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/command-prompt-context-windows-10.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/command-prompt-context-windows-10.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/command-prompt-context-windows-10.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":24381,"url":"https:\/\/www.winhelponline.com\/blog\/add-open-command-window-here-menu-windows-11\/","url_meta":{"origin":4813,"position":1},"title":"How to Add &#8220;Open command window here&#8221; in Windows 11","author":"Ramesh","date":"October 10, 2021","format":false,"excerpt":"In Windows 11, the context menu \"Open Command window here\" doesn't exist by default. Instead, you'll see the \"Open in Windows Terminal\" and \"Open PowerShell window here\" (when you press Shift + right-click) options in the folder context menu. This article tells you how to add \"Open Command window here\"\u2026","rel":"","context":"In &quot;Windows 11&quot;","block_context":{"text":"Windows 11","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-11\/"},"img":{"alt_text":"windows terminal option in win+x start context menu","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2021\/10\/win-x-terminal-powershell-comd.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1520,"url":"https:\/\/www.winhelponline.com\/blog\/open-elevated-command-prompt-windows\/","url_meta":{"origin":4813,"position":2},"title":"How to Open Elevated or Admin Command Prompt in Windows?","author":"Ramesh","date":"March 5, 2007","format":false,"excerpt":"Command Prompt is one of the most used tools in Windows. For tasks requiring administrator privileges, we need to start Command Prompt as administrator (\"elevated\"). This article describes different ways to open an elevated or administrator Command Prompt window. How to Open Elevated or Admin Command Prompt From the Win-X\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"task manager -run command prompt elevated - create new task","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2007\/03\/taskmgr-cmd-elevated.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2007\/03\/taskmgr-cmd-elevated.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2007\/03\/taskmgr-cmd-elevated.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2007\/03\/taskmgr-cmd-elevated.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":24390,"url":"https:\/\/www.winhelponline.com\/blog\/reinstall-windows-terminal-windows-11\/","url_meta":{"origin":4813,"position":3},"title":"How to Reinstall Windows Terminal in Windows 11","author":"Ramesh","date":"October 10, 2021","format":false,"excerpt":"Windows Terminal is a modern terminal application for users of command-line tools and shells like Command Prompt, PowerShell, and Windows Subsystem for Linux (WSL).\u00a0If you've uninstalled the Windows Terminal app in Windows 11 accidentally and need it back, you can reinstall the app using a couple of methods. It's also\u2026","rel":"","context":"In &quot;Windows 11&quot;","block_context":{"text":"Windows 11","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-11\/"},"img":{"alt_text":"reinstall windows terminal app microsoft store","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2021\/10\/reinstall-windows-terminal-ms-store.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2021\/10\/reinstall-windows-terminal-ms-store.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2021\/10\/reinstall-windows-terminal-ms-store.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":28839,"url":"https:\/\/www.winhelponline.com\/blog\/cant-open-cmd-after-uninstalling-python-anaconda\/","url_meta":{"origin":4813,"position":4},"title":"Can&#8217;t Open CMD.exe After Uninstalling Python\/Anaconda; Exit Code 1","author":"Ramesh","date":"September 29, 2022","format":false,"excerpt":"After uninstalling Python\/Anaconda on your Windows computer, Command Prompt may not open. When you run cmd.exe, it flashes on the screen and immediately quits. Also, running DISM and SFC (to repair corrupt system files), repairing Windows installation, and running a thorough malware scan may not fix the issue. Also, when\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"vscode cmd.exe error 1","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/09\/vscode-cmd-error-code-1.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":9532,"url":"https:\/\/www.winhelponline.com\/blog\/how-to-get-file-hash-via-right-click-menu-windows\/","url_meta":{"origin":4813,"position":5},"title":"Get File Hash Checksum (MD5, SHA-256) via Right-click Menu","author":"Ramesh","date":"May 26, 2019","format":false,"excerpt":"Hashing means taking an input string of any length and giving out an output of a fixed length. Using the cryptographic hashing algorithm -- e.g., MD5, SHA-256, SHA-384, you can verify if two files are identical or not. The checksum is a hash value used for performing data integrity checks\u2026","rel":"","context":"In &quot;Utilities&quot;","block_context":{"text":"Utilities","link":"https:\/\/www.winhelponline.com\/blog\/category\/utilities\/"},"img":{"alt_text":"get file hash right-click menu 7-zip","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/05\/7zip-get-file-hash-crc-sha-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/05\/7zip-get-file-hash-crc-sha-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/05\/7zip-get-file-hash-crc-sha-1.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/05\/7zip-get-file-hash-crc-sha-1.png?resize=700%2C400&ssl=1 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/4813","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=4813"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/4813\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=4813"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=4813"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=4813"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}