Sunday, August 19, 2007

A HOTKEY FOR COMMAND LINE DIRECTORY COMPLETION

A HOTKEY FOR COMMAND LINE DIRECTORY COMPLETION

if u work at command line for a considerable length of time u will want this hack , specify a key, which when pressed, will complete the directory name.

NAVIGATE TO

HKEY_CURRENT_USERS\SOFTWARES\MICROSOFT\C OMMAND PROCESSOR

AND TO :

HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\CO MMAND PROCESSOR

the first key above is user specific the second wide. change the setting of pathcompletionchar to DWORD hexadecimal value of the control character, for exmaple the value for the [Tab] key is 9 and [Ctrl] + [D] is 4 and so on... each key or key combination has a value assoiciated.

get more values at h t t p://en.wikipedia.org/wiki/ASCII

now at command prompt when u type in letters of a directory and press the combination key it will display the directory path matching your entry.