Brandon's WebLog

Not sure what to say yet.....I'm sure I'll think of something :)

TIP - CompletionChar

Had some problems with my blog, hence no entries for a while..... here we got with another quick tip.

I still find people who aren't using this.  If you aren't a quick typist, are a master of efficiency or simply don't like to type (such as me..)  Then using the completion character is one of those things you have to enable!  I'm not a windows registry expert by any means, this is just something that I find that makes life a whole lot easier, especially if you spent time in the command prompt.

So what does it do?

It's really two parts:  Filename completion & Directory name completion

- When you type a path and filename and then press the filename completion character, the command processor searches for all files whose path and file name match your entry.

- When you type a path and then press the directory name completion character, the command processor searches for all files whose path (but not necessarily the file name) matches your entry.

The command processor displays one of the matching filenames each time you type a completion character (thus scrolling through matching entries). To go backward through the list of file names, press SHIFT + <completion-character>.

HIGH LEVEL - SAMPLE USE:  When you are within the command processor (cmd.exe), this feature allows you to hit a completion character to cycle through the matching files/directories that match what you've started to type.

EXAMPLE:

I need to type “CD PROGRAM FILES” to change directories, but it's such a waste to type it all out.  Instead, do the following (From now on, bold indicates what I actually typed in).

1.  At the command prompt (C:\>), type CD pro
2. Then press the tab key.....
3. And it will show C:\> “program files”
4. Press Enter and you'll see.

C:\Program Files>

There you go.... I just shaved hours off your life of administration :-)

To set this manually, lauch Regedit (REMINDER - Backup the registry before doing anything)
322756 HOW TO: Back Up, Edit, and Restore the Registry in Windows XP and

After you've done that.....Here are two KB's that highlight the steps......

310530 HOW TO: Use Automatic Completion with a Command Prompt in Windows XP
244407 How to Enable Automatic Complete for the Command Prompt (Cmd.exe)

NEED Additional Information?
From the command prompt, type CMD /? and you'll get loads of information on how this works.

Published Thursday, March 25, 2004 2:37 PM by brandonhoff
Filed under:

Comments

 

rajbk said:


Great tip. thanks.

-raj
March 25, 2004 3:54 PM
 

igz said:

Why doesn't msft just enable this feature by default? Why hide it in the depths of the registry.
March 25, 2004 4:48 PM
 

Brandon said:

Not being in the Windows team, I'm not sure on that one of the actual reason. I sure wish they did as well. I'm guessing part of it is that if we did add it we'd default it to something, then it would overwrite what everyone's already customized their own to. A complete guess from me however.
March 25, 2004 5:08 PM
 

Joku said:

This is actually pretty weird thing, most of the XP's i've used this worked fine out of the box. When it didn't i went to registry and saw that the default wasn't disabled but the keys were different. After changing the TAB code in it worked normal.
March 27, 2004 9:30 PM
 

IM said:

Okay, now how many people backed up the registry?
March 29, 2004 11:23 PM
 

Brandon said:

My guess is none, but I still have to say it :)
March 30, 2004 10:59 AM
 

Brandon s WebLog TIP CompletionChar | Hair Growth Products said:

June 9, 2009 10:58 PM
Anonymous comments are disabled

This Blog

Syndication

Tags

News

This is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified in the Terms of Use

Archives


© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker