June 28, 2000 10:28 PM

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

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

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>.


ARTICLE TOOLS

Add a Comment

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

GOOGLE LINKS
SPONSORED LINKS
FEATURED LINKS

eBooks

Playbook for a Virtualized Datacenter | During challenging times, optimizing the IT infrastructure becomes imperative. Many organizations are looking to extend their virtualization efforts to encompass the entire datacenter. Get a step-through of your technology options and more.

White Papers

As the advances in USB devices have made them invaluable to most business users’, they have also exposed organizations to enormous risks. Learn how to easily enforce device/port control and data encryption policies without requiring new infrastructure and additional admin overhead.

WEB SEMINARS

Is Flexible Lockdown Possible? Join Darren Mar-Elia for this free web webinar exploring the various methods you should consider to protect and control your desktops while also understanding the impact on the end user community.
View Seminar On-Demand.

eLearning Series

Windows IT Pro brings the experts direct to you to share their real-world perspective, experience, and expertise. During each event, three sessions stream in real time, allowing you to learn, to ask questions, and to get solutions.
Upcoming event: SQL Server Consolidation

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.