You are currently offline, waiting for your internet to reconnect

How to Change the Title Bar Caption of the Command Prompt

This article was previously published under Q98578
This article has been archived. It is offered "as is" and will no longer be updated.
To make the title bar caption of the Windows NT command prompt displaythe current directory path, do the following:
  1. 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.
  2. Run Doskey with the following parameters:
    doskey cd=cd $*$T<name of the file you just created>
Whenever you subsequently use the CD command to change directories,the current directory will be displayed in the title bar of thecommand prompt.

Note: If you use the CD command without a space, Doskey cannot trapthe command and change the title bar. For example, if you use thefollowing command, the title bar will not display the currentdirectory path:

Article ID: 98578 - Last Review: 12/04/2015 09:26:46 - Revision: 3.1

Microsoft Windows NT Advanced Server 3.1, Microsoft Windows NT Workstation 3.1

  • kbnosurvey kbarchive kbui KB98578