How to enable auto complete in Windows command prompt

If you use Command Prompt on your Windows PC regularly, then turning on auto-complete in the command prompt is very useful to you. If we want to make any permanent changes in the Windows PC, then we need to edit the Windows registry.

How to enable auto complete in Windows command prompt

Auto complete feature in command prompt can be enabled permanently or for the current session.

Enable auto complete in CMD temporarily

  • Press Win+R keys to launch RUN dialog box and type cmd/f and press enter. The /f switch enables or disables the file and directory name completion characters.
  • Now press Ctrl+D keys to auto complete the folder name or Ctrl+F keys to auto complete the file name. Keep on pressing these key combinations and you can notice the file names will change.
  • If you want to deactivate the auto complete then type cmd /f:off

Enable auto complete in CMD permanently

  • Press Win+R keys to launch RUN dialog box and type regedit to launch Registry Editor. Here navigate to the below registry key,
    HKEY_LOCAL_MACHINESOFTWAREMicrosoftCommand Processor

autocomplete-in-command-prompt

  • Here find the Completion Char key, the default value of it is 40 in Hexadecimal. Here set the value of the REG_DWORD to 9. This will enable the folder name completion.
  • Then double click on the PathCompletionChar and change it value to 9.
  • This action will set the TAB key as the control character.

If you want to use the same control characters for a single command session then set the values as below.

  • 4 for Ctrl+D
  • 6 for Ctrl+F

Now the file name auto completion feature will work on the folders also, because Windows will search for the complete path and match against both the file and folder names.

You may also like...