RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Enterprise
Expertise: Beginner
Mar 9, 2009

Turn on Path Auto-Completion in DOS

It can be annoying to type long path names at the DOS command prompt. To avoid having to do so in Windows, you can enable DOS's auto-completion feature, which is included with every Windows NT (and later) operating system.

Here's how to enable auto-completion:

Go to the registry editor and navigate to the key:

HKEYCurrentUser/Software/Microsoft/Command Processor/
Find the CompletionChar item and set its value to 9. That's it. Now return to the DOS prompt to try out the enabled auto-completion feature. Here's an example. Suppose you're at the root folder c:\ and want to change to the Documents and Settings folder. Now you can just type cd doc, and press TAB.

DOS will complete the path for you, expanding the doc that you typed into cd "Documents and Settings".
deepak choudhari
Close Icon
Thanks for your registration, follow us on our social networks to keep up-to-date