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

on the windows command line I can autocomplete any filename/subdirectory by typing a few letters and then pressing Tab. Is there a way to extend this to anything that is in my PATH.


In my path I have the program verylongfilename.exe

In a command window that is currently in c:\temp I can type verylongfilename.exe to run the program.

If I put verylongfilename.exe in c:\temp, I can type very and then press tab to autocomplete. If verylongfilename.exe is in a different directory within the path, I always have to type the file name completely.

Any way around this without installing third party tools?

share|improve this question

From a CMD prompt or the run box, type "powershell" to give you what you're wanting.

share|improve this answer

Please use this command

cmd /f

which activates autofill.

Then type in atleast one letter of the file (or) folder name,

Then use Ctrl+F to autofill , if there more than one file (or) folder name which starts with the same letter,Then use Ctrl+F to cycle through the list.

Another choice is to drag and drop the file to cmd window, to get the entire path of the field.

share|improve this answer
What? Are you talking about when you start the Command Prompt? And how does it know what the user is looking for, if it searches every directory? – Canadian Luke Jul 29 '14 at 15:50
Tried this, but this does nothing when I type a few letters of the program name – 576i Aug 6 '14 at 6:52

You must log in to answer this question.

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