Wednesday, April 16, 2008

Auto complete filenames

This is a hack inspired from the UNIX shell command completion feature. You can type in the first few characters of a file name and then press a key to have the system complete it. This works when you are performing command line operations like those in MS DOS





Navigate to:

HKEY_CURRENT_USER\Software\Microsoft\Command Processor

And

HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor





Set the DWORD Value CompletionChar to an hexadecimal value. This is the value of the control character for the required keyboard stroke. You will find a detailed info over here wikipedia.org/ASCII_control_characters



The complete list of possible control characters can be found there. The representation is in the

form ^letter, where ^ represents the [Ctrl] key. Thus ^Z = [Ctrl] + [Z]



Type in the first few characters of the filename and press the key to complete it. If you have multiple files that begin with the same character string, press the [Ctrl] key multiple times to cycle through the available list of files. You need to restart the computer for the change/effect to take place. Back up your registry before you do it(click here). For more hacks see the registry hack section

No comments: