CMD completion for path executables

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?


Solution 1:

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

Solution 2:

Clink

  • 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.

https://mridgers.github.io/clink/