Favorite command prompt feature of the day: Wildcard auto-complete
Jeff Key
Saturday, April 03, 2004
Comments

Autocomplete in the command prompt is great.  If you didn't know, repeatedly pressing TAB just about anywhere will iterate through the filenames in that directory.  For example, consider the following files:

bar.dll
foo.dll
foo.bar.dll
zoo.exe
zoo.foo.dll

Typing “installutil <tab>” will give you “installutil bar.dll”, another tab results in “installutil foo.dll”, and so on.  This is a great time-saver, but is somewhat cumbersome when the directory has a good number of files in it.  The solution is wildcards:  You can enter any valid wildcard and it will filter on that wildcard.  Example:

“installutil *.exe <tab>” will bring you right to “installutil zoo.exe”.  “installutil *foo* <tab>” will give you foo.dll, foo.bar.dll and zoo.foo.dll.

Happy typing.


You might also be interested in my .NET development tools, samples, etc. (All free, of course!)