Command Prompt for Windows




File Name Completion (Tab Key)

The system menu contains the Attributes... option, as below :-

When selected will display the Attributes window containing the Tab tab, as below :-

The Tab tab allows the setting of either long or short tabs for file name completion and a number of options when using the tab key.

Short or Long Tabs

The Tab key will expand an incomplete path, file, command or macro name, that is currently being entered at the command prompt.

Short Tabs will find the longest sequence of characters, from all the matching names, that are identical. The characters found are then added to the end of the expanding name. Typically, each Tab press may result in only a small number of characters being added to the expanding name, so that, the name is still 'short' a few characters. In general, Short Tabs require a combination of both Tab and character key presses in order to fully expand a name.

Long Tabs will cycle though all the matching names (in alphabetical order). Each Tab press results in a full name being substituted, hence the name 'Long Tabs'. In general, Longs Tabs require several Tab key presses (to cycle though the matching names) before the required match is found.

Expand Hidden Files and Directories

When this feature is enabled, then all files and directories that have a hidden file attribute will be included in the list of all the matching names found. When this feature is not enabled then no hidden files or directories will be matched. See Command ATTRIB for changing the attributes of a file or a directory.

Automatic Directory Listing

When this feature is enabled (for Short Tabs only), then each Tab press will also display a short directory listing which contains a list of all the matching names found. A small tick mark is displayed next to the option text when this feature is enabled, otherwise no tick mark appears next to the option text when this feature is not enabled.

Automatic Upper or Lower Case Mapping

When this feature is enabled, then expanding names will be mapped to either upper case or lower case characters, depending on whether Caps Lock is on or off. When Caps Lock is on, then expanding names are mapped to upper case characters, otherwise, expanding names are mapped to lower case characters. When this feature is not enabled then the characters are not mapped to either upper or lower case characters. A small tick mark is displayed next to the option text when this feature is enabled, otherwise no tick mark appears next to the option text when this feature is not enabled.

Notes

Examples on using the TAB key.

Also see Command Line Edit Keys.