Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Let's assume a folder C:\Convert that contains a convertImage.exe. After putting C:\Convert onto %PATH% I'd like to be able to use completion in CMD for convertImage.exe so that I only have to type convertI... to get to the executable.

Is this possible?

share|improve this question
up vote 3 down vote accepted

Not from a Command Prompt no, this doesn't even work for the like of ping.exe etc

Auto completion in Command Prompt only works within the directory, so if you do cd c:\convert then you can press c then tab and you'll get it filled.

If you add the path to the Path variable under system variables then you can click Start -> Run and type just covertImage.exe and it will work

share|improve this answer


  • Powerful Bash-like line editing from GNU's Readline library. Readmore on Readline's keyboard shortcuts.
  • Superior path completion (TAB).
  • Paste from clipboard (Ctrl-V).
  • Support for the completion of executables/commands, and environment variables.
  • Undo/Redo (Ctrl-_ or Ctrl-X, Ctrl-U)
  • Improved command line history.
    • Persists across sessions.
    • Searchable (Ctrl-R and Ctrl-S).
    • History expansion (e.g. !!, !, and !$).
  • Scriptable completion using Lua.

share|improve this answer
+1 Just simply awesome. – Zano Nov 17 '12 at 21:04
+1 I wish I could give you more upvotes. Dunno how I never found this before now. – cjrh Oct 30 '13 at 0:34
This is amazing, and I'd never heard of it! – Jonathan Hartley Apr 17 '14 at 19:24

Try this:

  1. Open regedit.exe and navigate to:

HKEY_CURRENT_USER\Software\Microsoft\Command Processor

  1. Add two REG_DWORD values if they do not exist: CompletionChar and PathCompletionChar. Edit their values to "9" (sans-quotes) and restart the computer.

After reboot, try to use the TAB key to autocomplete.

Other than that there is no way for command to use an automatic autocomplete.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .