{"id":10301,"date":"2019-07-12T03:28:28","date_gmt":"2019-07-11T21:58:28","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=10301"},"modified":"2023-08-02T20:33:20","modified_gmt":"2023-08-02T15:03:20","slug":"how-to-enable-command-prompt-autocomplete-path-if-it-stops-working","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/how-to-enable-command-prompt-autocomplete-path-if-it-stops-working\/","title":{"rendered":"Fix: Command Prompt Tab to Autocomplete not working"},"content":{"rendered":"<p>The Command Prompt has a handy little feature that lets to change directory paths using autocomplete. To change to a directory or type a directory name, you can type the starting letters of the directory and press the <kbd>TAB<\/kbd> key to autocomplete the file or folder path.<\/p>\n<p><em>(To learn how to use TAB autocomplete in Command Prompt, check out the <a href=\"#examples\">examples<\/a> provided at the end of this article.)<\/em><\/p>\n<p>File and folder paths autocomplete feature is enabled by default in Windows 10. But if it stops working for some reason, this article tells you how to fix it.<!--more--><\/p>\n<h2>How to Enable Command Prompt TAB Autocomplete<\/h2>\n<p>To enable the Command Prompt to autocomplete file and folder paths upon pressing the <kbd>TAB<\/kbd> key, follow these steps:<\/p>\n<ol>\n<li>Start the Registry Editor (<code>regedit.exe<\/code>)<\/li>\n<li>Go to the following branch:\n<pre>HKEY_CURRENT_USER\\Software\\Microsoft\\Command Processor<\/pre>\n<div class=\"newline\">(The user-specific settings under <code>HKEY_CURRENT_USER<\/code> take precedence over the machine settings. So, you don&#8217;t need to repeat the setting under the <code>HKEY_LOCAL_MACHINE<\/code> branch.)<\/div>\n<\/li>\n<li>Double-click <code>CompletionChar<\/code> and set its data to <code>9<\/code><\/li>\n<li>Double-click <code>PathCompletionChar<\/code> and set its data to <code>9<\/code>\n<div class=\"newline\"><em>If the above registry values are missing, you&#8217;ll need to manually create the values (of type DWORD 32-bit) and set the data. Note that the value <code>9<\/code> (<code>0x9<\/code>) is the ASCII key code for the <kbd>TAB<\/kbd><kbd>\u00a0key<\/kbd>.<\/em><\/div>\n<\/li>\n<li>Exit the Registry Editor.<\/li>\n<li>Close and reopen Command Prompt for the change to take effect.<\/li>\n<\/ol>\n<h3>(Using command-line)<\/h3>\n<p>Alternately, to enable the Command Prompt <kbd>TAB<\/kbd> Autocomplete feature via command-line, use the following <code>reg.exe<\/code> commands from a Command Prompt window:<\/p>\n<pre>reg add \"hkcu\\software\\microsoft\\command processor\" \/v CompletionChar \/d 9 \/t REG_DWORD \/f\r\nreg add \"hkcu\\software\\microsoft\\command processor\" \/v PathCompletionChar \/d 9 \/t REG_DWORD \/f<\/pre>\n<p>Close and reopen Command Prompt for the change to take effect.<\/p>\n<p><strong>Important:<\/strong> If you start the Command Prompt using the <code>CMD.EXE \/F:OFF<\/code> switch, auto-completion using the <kbd>TAB<\/kbd> key won&#8217;t work, as the <code>\/F:OFF<\/code> switch it overrides the registry settings.<\/p>\n<div class=\"rp\"><strong>RELATED:<\/strong> <a href=\"https:\/\/www.winhelponline.com\/blog\/autosuggest-autocomplete-explorer-address-bar-run-dialog\/\">How to Enable AutoSuggest and AutoComplete in Explorer Address Bar and Run Dialog?<\/a><\/div>\n<p>Typing the complete folder path manually is an annoying task. The Command Prompt file and folder name autocomplete feature is convenient, especially when dealing with long folder names or when the folder names have <a href=\"https:\/\/www.winhelponline.com\/blog\/photos-store-apps-file-system-error-2147219196\/\">version numbers<\/a> in them.<\/p>\n<hr \/>\n<h3><a id=\"examples\"><\/a>Tips: How the Command Prompt TAB AutoComplete works<\/h3>\n<p>For example, to change to the directory named <code>Program Files<\/code>, from the <code>C:\\<\/code> prompt, simply type <code>cd prog<\/code> and press the <kbd>TAB<\/kbd> key. The Command Prompt autocompletes the directory name automatically. The autocomplete feature automatically encloses file\/folder names in double-quotes if it contains one or more spaces.<\/p>\n<h4>Cycle through folder names using TAB<\/h4>\n<p>However, if there are multiple folders whose name start with <code>Prog<\/code> &#8212; then pressing <kbd>TAB<\/kbd> once will autocomplete the first folder name that begins with <code>Prog<\/code>. Subsequent <kbd>TAB<\/kbd> presses will cycle through the remaining matching folder names.<\/p>\n<p>For example, you have three folder names that start with <code>Prog<\/code> on the C:\\ drive &#8212; <code>Program Files<\/code>, <code>Program Files (x86)<\/code> and <code>ProgramData<\/code>. Let&#8217;s say you want to switch to <code>ProgramData<\/code> on the <code>C:\\<\/code> drive using the autocomplete feature.<\/p>\n<ul>\n<li>From the C:\\ prompt, type <code>prog<\/code> and press the <kbd>TAB<\/kbd> key. It autocompletes the 1st folder name &#8212; <code>Program Files<\/code>.<\/li>\n<li>Press the <kbd>TAB<\/kbd> key again to autocomplete the 2nd folder name &#8212; <code>Program Files (x86)<\/code><\/li>\n<li>Press the <kbd>TAB<\/kbd> key again to autocomplete the 3rd folder name &#8212; <code>ProgramData<\/code><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10302\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/07\/cmd-autocomplete-path.gif\" alt=\"autocomplete path characters in command prompt\" width=\"693\" height=\"97\" \/><\/p>\n<p>Note that you need not be in the current directory. You can type the beginning of any folder path from any drive, like below:<\/p>\n<figure id=\"attachment_10312\" aria-describedby=\"caption-attachment-10312\" style=\"width: 683px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-10312\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/07\/cmd-autocomplete-path-4.gif\" alt=\"autocomplete path characters in command prompt\" width=\"693\" height=\"97\" \/><figcaption id=\"caption-attachment-10312\" class=\"wp-caption-text\">File &amp; Folder Paths autocomplete<\/figcaption><\/figure>\n<p>You can also use <kbd>Shift<\/kbd> + <kbd>TAB<\/kbd> for cycling through the folder names in reverse alphabetical order.<\/p>\n<p>Another example would be to list the directory contents of <code>Program Files (x86)<\/code>. To do so, from the C:\\ prompt, type <code>dir prog<\/code> and then press the <kbd>TAB<\/kbd> key (twice) to autocomplete the <code>Program Files (x86)<\/code> folder name.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Command Prompt has a handy little feature that lets to change directory paths using autocomplete. To change to a directory or type a directory name, you can type the starting letters of the directory and press the TAB key to autocomplete the file or folder path. (To learn how to use TAB autocomplete in &#8230; <a title=\"Fix: Command Prompt Tab to Autocomplete not working\" class=\"read-more\" href=\"https:\/\/www.winhelponline.com\/blog\/how-to-enable-command-prompt-autocomplete-path-if-it-stops-working\/\" aria-label=\"Read more about Fix: Command Prompt Tab to Autocomplete not working\">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":[7],"tags":[106,441],"class_list":["post-10301","post","type-post","status-publish","format-standard","hentry","category-windows","tag-command-prompt","tag-registry"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":1902,"url":"https:\/\/www.winhelponline.com\/blog\/autosuggest-autocomplete-explorer-address-bar-run-dialog\/","url_meta":{"origin":10301,"position":0},"title":"Enable or Disable Auto-Suggest and Inline AutoComplete in Run Dialog and Explorer","author":"Ramesh","date":"March 7, 2016","format":false,"excerpt":"As you type a path in the File Explorer or Windows Explorer address bar, the Run dialog or in the Create New Task dialog in Task Manager, the file or folder name suggestions are shown in a list box. When you type a letter in the Run dialog, the AutoComplete\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"run dialog autocomplete not working","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/03\/run-dialog-autocomplete-content-tab-ie.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/03\/run-dialog-autocomplete-content-tab-ie.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/03\/run-dialog-autocomplete-content-tab-ie.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":78295,"url":"https:\/\/www.winhelponline.com\/blog\/turn-off-file-uri-history-run-dialog\/","url_meta":{"origin":10301,"position":1},"title":"How to Turn off File Path URI history in Run Dialog","author":"Ramesh","date":"April 7, 2025","format":false,"excerpt":"When you open the Run dialog and type f or \/ (forward slash), the recently accessed files may appear in the list as file path URIs. You wonder where these entries are stored, as they're not in the RunMRU registry location. Resolution The file URI history comes from the IE\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"Run dialog turn off or clear file URI history - inetcpl.cpl","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2025\/04\/run-uri-history-clear-inetcpl.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":6294,"url":"https:\/\/www.winhelponline.com\/blog\/photos-store-apps-file-system-error-2147219196\/","url_meta":{"origin":10301,"position":2},"title":"File System Error (-2147219196) in Photos or Other Store Apps","author":"Ramesh","date":"July 20, 2018","format":false,"excerpt":"With the Photos app set as the default in your Windows 10\/11 computer, when you double-click on a JPG, PNG, or any other image file, the error -2147219196 may occur, and the app may crash. Here is the full error message verbatim: File System Error -2147219196 And, repairing or resetting\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":"photos app installlocation","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/07\/app-photos-installlocation.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/07\/app-photos-installlocation.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/07\/app-photos-installlocation.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/07\/app-photos-installlocation.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":4261,"url":"https:\/\/www.winhelponline.com\/blog\/print-directory-contents-using-chrome-firefox\/","url_meta":{"origin":10301,"position":3},"title":"How to Print Directory Contents Using Different Methods","author":"Ramesh","date":"October 4, 2016","format":false,"excerpt":"You can copy folder contents by selecting all items in a folder, pressing Shift key and clicking the Copy as Path command in the right-click menu. Then open Notepad or any other text editor and paste the contents from the clipboard. But if you need to print the directory list\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"get directory listing - sysexporter","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/10\/dir-list-sysexporter.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/10\/dir-list-sysexporter.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/10\/dir-list-sysexporter.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/10\/dir-list-sysexporter.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":9842,"url":"https:\/\/www.winhelponline.com\/blog\/open-command-prompt-current-folder-keyboard-shortcut\/","url_meta":{"origin":10301,"position":4},"title":"Open Command Prompt in Current Folder Using Keyboard Shortcut","author":"Ramesh","date":"June 19, 2019","format":false,"excerpt":"There are at least a couple of ways to open Command Prompt in the current folder path from a folder window. The two widely used options include running cmd.exe from the File Explorer address bar and using the Open Command window here option from the folder background context menu. But,\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"open command prompt in current folder - autohotkey","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/06\/open-cmd-here-autohotkey-3.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/06\/open-cmd-here-autohotkey-3.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/06\/open-cmd-here-autohotkey-3.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/06\/open-cmd-here-autohotkey-3.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":10301,"position":5},"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":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/10301","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=10301"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/10301\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=10301"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=10301"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=10301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}