CompletionChar

HKLM\SOFTWARE\Microsoft\Command Processor

Data type

Range

Default value

REG_DWORD

0x0 | 0x1–0x1F | 0x9 | 0x20

0x9 (the TAB key)

Description

Specifies a character that activates the file-name completion feature in the command processor (Cmd.exe).

To specify a character, enter the hexadecimal value of an ASCII control character other than 0x20 (space). For example, 0x4 represents CTRL+D and 0x6 represents CTRL+F. To disable the file-name completion feature, set the value of this entry to 0x0.

Value

Meaning

0x0

Disables completion.

0x1–0x1F

Corresponding ASCII control character.

0xD

Disables completion.

0x9

TAB key.

0x20

space key. Disables completion.

0x40

key.

Change method

To change the completion character in Windows 2000, use a registry editor. You can also change the value of this entry by using Command Processor (Cmd.exe), but only for the duration of that Cmd.exe's execution.

Cc978030.note(en-us,TechNet.10).gif Note

CompletionChar and PathCompletionChar can appear in HKEY_LOCAL_MACHINE and HKEY_CURRENT_USER. If both appear in the registry, the value of the entry in HKEY_CURRENT_USER takes precedence over the value in HKEY_LOCAL_MACHINE.

For the original release of Windows 2000, the default value for this entry is 0x20. For Service Pack 1, the default is 0x9.

Assigning the values 0x0, 0xD, or 0x20 to this entry disables file name completion rather than assigning a completion character.

The command-line switches take precedence over the registry settings while using Command Processor (Cmd.exe).

Cc978030.tip(en-us,TechNet.10).gif Tip

To enable or disable file name completion and directory name completion for one use of the command processor, at the command prompt, type CMD /F:ON (enable) or CMD /F:OFF (disable). This command sets the completion character to CTRL+F (0x6).

For more information about the file-name completion feature, at a command prompt, type CMD /?

Related Entries

Cc978030.reltopic(en-us,TechNet.10).gif

PathCompletionChar

Cc978030.reltopic(en-us,TechNet.10).gif

CompletionChar in HKEY_CURRENT_USER