Skip to content

5000+ Great Articles

Best Articles & Essays: Interesting Articles to Read Online

  • Amazon Fire TV remote not working? Try these 7 fixes Computer Tips
  • How To Reset PRAM & SMC On Your Mac Tutorials
  • How To Block Sites With Free Parental Control Software Tools Review
  • Configure Ubuntu to Not Dim or Turn Off An Inactive Display Linux Tips
  • 6 Easy Ways to Find Out Who’s Looking for You Online Computer Tips
  • how to watch u.s. open golf 2022 technology
  • The Five Best Alternative iOS Maps Apps iOS
  • Best Google Chrome Themes of 2022 Google Software/Tips

How to Turn On Auto-Complete in the Command Prompt

Posted on October 6, 2020 By blog_786 No Comments on How to Turn On Auto-Complete in the Command Prompt

Do you use the command line daily? If so, I recently found a way to enable autocomplete for the command line using a simple registry edit. When entering a long path, just enter the first few letters and then press TAB to autocomplete folder or file names.

For example, if I’m typing to C: Documents and Settings , I just need to type C: Doc and then press the TAB key.

As you can see, there is only one folder that starts with “doc” so it is automatically terminated by adding quotation marks. It’s pretty neat. If you want to continue, just add another at the end and press TAB. Note that you can add a forward slash after the quote and it will still work fine.

You can continue browsing through the various folders and files in a directory simply by pressing the TAB key. Therefore, if you enter C: and then continue to press the tab key, you can cycle through all the folders and files in that path in alphabetical order, i.e. C: Documents and Settings, C: Program Files , etc. etc.

Note that this really only applies to Windows XP. On Windows 7 and later, autocomplete will work automatically when you press the TAB key.

Enable command prompt auto-completion

Step 1. Click “Start” then “Run” and type regedit in Windows XP. On Windows 7 and newer, just click Start and type regedit.

Step 2. Navigate to one of the following registry keys. :

HKEY_LOCAL_MACHINE SOFTWARE Microsoft Command Processor

HKEY_CURRENT_USER SOFTWARE Microsoft Command Processor

So which one to choose? Well, this is how it works. The local computer key will apply to all users on the computer, but will be overridden by the current user key if the value is different. For example, if autocomplete is disabled for the HKLM key, but enabled for the HKCU key, then it will be enabled. You can tell if autocomplete is turned off by simply inserting a TAB space when you press the TAB key.

You can change the settings in both places if you like, but in fact it is only needed in the HKCU key to enable autocomplete.

Step 3: Double-click the CompletionChar button and change the value to 9 in decimal format. CompletionChar enables folder name completion.

You can also enable filename completion by also changing the PathCompletionChar value to 9. Note that 9 or 0x9 in hex is used to use the TAB control character for autocomplete. You can also use other keys if you like.

For example, you can use 0x4 for CTRL + D and 0x6 for CTRL + F. I personally think the TAB key is the most intuitive key, but you have other options if you need to.

You can also use the same control character to complete files and folders if you like. In this case, autocomplete will show you all matching files and folders for the given path.

As mentioned earlier, the default on Windows 7, Windows 8 and above is 0x40 (64 decimal) in the HKLM key. By default, the HKCU key should be set to 0x9 (9 in decimal), which means it will be enabled. If not, you can manually change it.

Overall, this is a great time saver for those who have to type a lot of DOS commands. If you have any questions, do not hesitate to leave comments. Enjoy!

–

How to Turn On Auto-Complete in the Command Prompt

Share this:

  • Twitter
  • Facebook
Computer Tips

Post navigation

Previous Post: Change or Spoof a MAC Address in Windows or OS X
Next Post: How to Uninstall and Reinstall Windows Updates

Related Posts

  • 3 Ways To Come Up With the Most Secure Password
  • OTT Guide to Creating a Strong Password Computer Tips
  • 8 Ways to Fix “Failed to Send” Error in Snapchat Computer Tips
  • How to Uninstall and Reinstall Windows Updates Computer Tips
  • 6 Extensions You Can Use To Block Ads In Microsoft Edge Computer Tips
  • How to Block Someone on Spotify Computer Tips

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Archives

  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • March 2021
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • December 2019
  • July 2019
  • May 2019
  • April 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018

Categories

  • AI Tools & Guides
  • Amazon Web Services
  • Apple Watch
  • Computer Tips
  • Cool Websites
  • Featured Posts
  • Free Software Downloads
  • Gadgets
  • Gaming
  • General Software
  • Google Software/Tips
  • Hardware
  • Help Desk
  • How-To
  • iOS
  • iPad
  • iPhone
  • islamic Books
  • Linux
  • Linux Tips
  • Mac OS X
  • macOS
  • MS Office Tips
  • Networking
  • Office Tips
  • OS X
  • Product Reviews
  • Reviews
  • Safari
  • Smart Home
  • Smartphones
  • Software Reviews
  • technology
  • text
  • Tools Review
  • Troubleshooting
  • Tutorials
  • Uncategorized
  • Urdu Books PDF
  • Web Site Tips
  • Windows
  • Windows 10
  • Windows 7
  • Windows XP Tips
  • Wordpress
  • How to Get 2 Free Audiobooks From Audible Trial Instead of 1
  • 10 Things to Check Before Publishing a YouTube Video
  • A Simple Trick to Get 50% Discount on Audible for Three Months
  • How to reset your SIM card
  • This Simple Trick Lets You Play YouTube in the Background on iOS
DMCA.com Protection Status

Recent Posts

  • 4 Ways to Share WiFi Without Giving Away Your Password
  • How to Get 2 Free Audiobooks From Audible Trial Instead of 1
  • 10 Things to Check Before Publishing a YouTube Video
  • MailTag: Real-time Email Tracking, Made Easy
  • Pokemon Sleep: what is it and how to play

Recent Comments

  1. This Simple Trick Lets You Play YouTube in the Background on iOS on YouTube Not Working? Here Are Quick Fixes To Try
  2. How to Bypass Chromecast DNS and Circumvent Geo Blocking on 5 Cool Websites to Find Good Movies and TV Shows on Netflix
  3. 5 Cool Websites to Find Good Movies and TV Shows on Netflix on check netflix video quality internet explorer
  4. SmartDNS vs VPN “What’s the Difference?” on How to Watch Apple TV on Roku
  5. How to go Back to the old YouTube Layout (2013) on 10 Things to Check Before Publishing a YouTube Video
  • Use Format Painter in Word to Copy and Paste Formatting MS Office Tips
  • Best sharp calculator ribbon 2020

    Best kitchen calculator 2020. 1 - Calculated Industries 8300 KitchenCalc Recipe Conversion and Culinary Math Calculator with Digital Timer for Chefs, Culinar

  • How to Transfer WhatsApp Chat History from iPhone to Android iPhone
  • How to Record Gameplay on PS4 How-To
  • 12 Places for the Best Free YouTube Movies for Kids technology
  • 5 Best Safe APK Download Sites for Android Apps Tools Review
  • RedMagic 7 Best Gaming Phone: Overview Gaming
  • Best ipad tips and tricks 2022 iPad

Copyright © 2023 How To Blog.

Powered by PressBook News WordPress theme

Go to mobile version