Microsoft KB Archive/98578

= How to Change the Title Bar Caption of the Command Prompt =

Article ID: 98578

Article Last Modified on 11/1/2006

-

APPLIES TO


 * Microsoft Windows NT Advanced Server 3.1
 * Microsoft Windows NT Workstation 3.1

-



This article was previously published under Q98578



SUMMARY
To make the title bar caption of the Windows NT command prompt display the current directory path, do the following:  Create a file somewhere in your Windows NT path that contains the following line:

@title %=c:%

The name of this file should have a .CMD extension. Run Doskey with the following parameters:

doskey cd=cd $*$T



Whenever you subsequently use the CD command to change directories, the current directory will be displayed in the title bar of the command prompt.

Note: If you use the CD command without a space, Doskey cannot trap the command and change the title bar. For example, if you use the following command, the title bar will not display the current directory path:

cd\

Additional query words: prodnt

Keywords: kbui KB98578

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.