Jeff Key

It works on my machine

Sponsors

My Job

My stuff

Old stuff

Useful Stuff

Favorite command prompt feature of the day: Wildcard auto-complete

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.

Posted: Apr 03 2004, 02:07 PM by jeffreykey | with 3 comment(s)
Filed under:

Comments

John Schroedl said:

Sweet! I love the command completion and I will definitely use this tip in my large directories.

Thanks for sharing!
# April 7, 2004 3:10 PM

John Schroedl said:

This seems slightly appropriate to share here...

While I love the command prompt, sometimes you need to go to details view in Explorer. My rarely-documented tip to share for that view is Ctrl-'+' (NumPad plus) -- autosizes all the columns. Very nice!
# April 8, 2004 10:01 AM

Jeff Key said:

Too cool! Thanks, John. I'm always in details mode and always double-clicking the column handles to resize one at a time. How have I missed this all these years? An instant classic.
# April 8, 2004 10:09 AM