Monday 22 August 2016

Windows command line TAB auto-completion tip

I came across this tip yesterday. You can specify a file using wildcards and then use TAB auto-completion in a Windows command shell.

For instance:

If you are working at the Windows cmd shell and want to edit a .txt file (for instance), type

notepad *.txt

You can now press the TAB key until you see the file you want.

This works with more complex wildcards to such as  p*.t* and with network shares too.

No comments:

Post a Comment