Most computer users, whether you’re at an advanced level or not, will still need to use the Windows Command Prompt to perform various tasks in Windows, especially those involving repairs. Even today with Windows 8, the Command line and DOS prompt is still a valuable part of the operating system. There are also still some things that many users still prefer to do in the command prompt.
One of frustrating things is typing the long names of files or folders into the command prompt. It takes slightly longer to type the long file or folder name and then what’s worse, is when you get it wrong which will result in the message “The system cannot find the path specified”. Then the second time it has to be typed more carefully to avoid typing errors. It can really become a waste of your time… Without a doubt that most common mistype folder name in the command prompt is “Documents and Settings” while using Windows XP and below. Starting from Windows 2000, you can avoid typing the wrong file or folder names because you can hit the Tab key and it will auto complete the word, much like you can in a web browser to complete a URL.
Here’s an example of how auto-complete works in the Command Prompt.
If you are at C:\ and type in:
And then press the Tab key, Windows will automatically type in cd “Documents and Settings”
Obviously you can do this with any shortened lettering, for example, type “dir pr” while in the root of C:\ and pressing Tab you will get dir “Program Files” pop up.
The files and folder names will cycle by pressing the Tab key several times if you have more than a single folder or file with the same starting letters. Alternatively, pressing Shift and Tab reverses the cycle order. This tip will work in Windows XP, Vista, 7 and even 8 by default.
As for Windows 2000, you’ll need to modify the registry.
1. Go to Start and then click Run.
2. Type regedit and press Enter.
3. Navigate to:
4. At the right pane of Registry Editor, look for CompletionChar and PathCompletionChar.
5. Double click the name and change the value to 9.
This is a very easy tip to share and a useful thing for users of the Command Prompt to know about.