How to turn on auto-complete in the command prompt
Posted on September 10, 2008 at 5:37 am
Do you use the command prompt on a daily basis? If you do, then this tip is definitely for you! I recently found out that there is a way to turn on auto-complete for the command prompt via a simple registry hack. So that means if you are typing in a long path, simply type in the first few letters and then press TAB to auto-complete.
For example, if I am typing in C:\Documents and Settings\, I would just need to type in C:\Doc and then press the TAB key.
As you can see, there is only one option that starts with “doc”, so it’s automatically filled along with quotes since it has spaces in the path! Now that’s pretty neat. I always loved using auto-complete in Windows Explorer or even in Open and Save dialogs, but never knew it could be done in the command prompt also.
You can also browse through the different folders and files in a directory by simply pressing the TAB key. So if you type in C:\ and then keep pressing the tab key, you will be able to cycle through all the folders and files in that path in alphabetical order, i.e. C:\Documents and Settings, C:\Program Files\, etc.
How to enable auto-complete for command prompt
Step 1: Click on Start, then Run and type in regedit
Step 2: Navigate to the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor
Step 3: Double-click on the “CompletionChar” key and change the value to 9
Now close regedit and open the command prompt. Start typing in a partial path and then press TAB to auto-complete it! Pretty sweet eh! Great for anyone who has to work with the command prompt a lot. Enjoy!
» Filed Under Computer Tips
Save this page |
Stir it up on Mixx |
|
Add to Reddit |
Related Posts
- How to change the default location for installing applications in Windows
- How to create an "Invisible" hidden drive in Windows
- How to pin a folder to the Start Menu in Windows XP
- How to navigate in the DOS command prompt
- Fix Registry editing has been disabled by your administrator error
Save this page
Stir it up on Mixx
Add to Reddit






















Isn’t this feature turned on by default in the OS…I mean in XP? The value on my machine is 40…and I am able to use auto complete feature without any hack. Were you referring to some other OS?
DWiner, I also had a value of 40 in mine, but was not able to use the auto complete feature. Maybe something is wrong with my machine…I am on XP SP2.
Thanks. This is a neat little trick. I’m not sure whether it would have worked with a value of 40 or not but all the same, the autocomplete feature is convenient especially when you need to input names of files in Japanese, where you need to change to IME.
Fantastic little tip - in all these years I didn’t know this was possible… I use the command prompt all the time (still!), so this will save me some time