Windows Command Line Auto Complete

ClaymooreClaymoore Member Posts: 1,637
I was flipping through the Windows Registry Guide looking for something else, but came across a couple of registry edits that enable file and directory auto-completion at the windows command prompt:

HKCU\Software\Microsoft\Command Processor
CompletionChar REG_DWORD data
PathCompletionChar REG_DWORD data

The data is ASCII code for the key, and the ASCII code for the TAB key is 0x09. CompletionChar enables file name completion while PathCompletionChar enables directory completion. The registry values were already there on my Vista workstation but not on my XP test workstation. When I added the values and re-opened the command prompt I was able to use the TAB key to autocomplete files and directories. Just keep pressing TAB to move through the selections.

You can also use the TAB key to auto complete in PowerShell, but the registry edit is not required.

I couldn't find a group policy that enabled this setting, but you could use group policy preferences (if you have 200icon_cool.gif to deploy the registry edit.


Sign In or Register to comment.