Vista in the command line window TAB key skills

  
                  

In Windows, TAB is a very important function key. Proper use of it can effectively improve the efficiency of our operation in Windows, such as using Alt+TAB to switch active windows. However, in addition to the commonly used functions, the TAB key has some "secret" techniques that are not familiar to everyone, and can also bring great convenience to our operation.


For example, in the command line window, if we want to enter a subdirectory, such as "Program Files", the general method is to type "cd Program Files", which is cumbersome and clumsy. In fact, this step can be simplified by the auto-complete feature of the TAB key.

Automatic completion of the TAB key in the command line window of Windows Vista

The auto-completion function of the TAB key means that the system can help us automatically after pressing the TAB key in the command line window. Fill the path, file name, etc., we will explain in detail through specific examples.

The above picture is an example. In the current directory, there is a directory named "Program Files". After we input "cd p" and press the TAB key, the system will automatically find the current The first directory in the directory structure starting with "P", and the directory name is automatically populated into "cd p", as shown below:

So, if the current directory still exists What happens when you start with other subdirectories starting with "P"? For example, there is a directory named "Pauto". At this time, the auto-fill content of the TAB key will become the sub-directory (the default is in ascending order of characters). If we want to enter the "Program Files" directory, we need to be more Detailed restrictions, such as entering "cd pr" and then pressing the TAB key.

Of course, the above just uses the "cd" command as an example. It does not mean that the auto-fill function of the TAB key exists only for "cd". In fact, this function supports most commands in the command line window. For example, when we want to edit a file with a long file name, such as "this is long name.txt", you can type "edit t" on the command line and press the TAB key. - Of course, the premise is that there is no file in the directory starting with "T" or even if it is listed after the file, otherwise you need to enter more characters to accurately limit.

Automatic completion of the TAB key in the command line window of Windows XP/2000

In fact, this very effective function is not only available in Windows Vista, but also in the default settings of Windows XP.

In Windows 2000, you need to modify the system settings to support the auto-complete function of the TAB key in the command line window. The specific method is: open the registry editor, create a new DWord button named "CompletionChar" under the "HKEY_LOCAL_MACHINE \\SOFTWARE \\Microsoft \\Command Processor" subkey, and set its value to "00000009".

Copyright © Windows knowledge All Rights Reserved