Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

June 28, 2000 12:00 AM

JSI Tip 2542. Command line folder and file completion in Windows 2000.

Windows IT Pro
InstantDoc ID #73862
Rating: (0)

In tip 0031, we configured command line file name completion for Windows NT.

In Windows 2000, you can control both the file and path completion.

To enable file and folder completion for one use of the command processor, type CMD /F:ON, which sets the file completion character to CTRL+F and the path completion to CTRL+D. To disable it for the current session, type CMD /F:OFF.

To set file name completion via the registry, use Regedt32 to navigate to:

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Command Processor

Edit or Add Value name CompletionChar as a REG_DWORD data type. A data value of 0 turns off filename completion.
A data value in the range of 0x1 - 0x1F turns it on, where the data value is the ASCII control character.
A data value of 0x4 is CTRL+D, while 0x6 is CTRL+F.

To set path completion, Edit or Add Value name PathCompletionChar as a REG_DWORD data type. A data value of 0 turns off path completion.
A data value in the range of 0x1 - 0x1F turns it on, where the data value is the ASCII control character.
A data value of 0x4 is CTRL+D, while 0x6 is CTRL+F.

NOTE: Both these Value Names can also be configured at HKEY_LOCAL_MACHINE. HKEY_CURRENT_USER takes precedence.

NOTE: When you press the file or path completion, the first matching entry appears. Pressing it again retrieves the next entry in the list.
To go backwards, press SHIFT+<completion-character>.


Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.