home *** CD-ROM | disk | FTP | other *** search
/ Borland Programmer's Resource / Borland_Programmers_Resource_CD_1995.iso / info / ntkb / ntkb.exe / Q98 / 5 / 78.TXT next >
Encoding:
Text File  |  1993-09-28  |  2.1 KB  |  59 lines

  1. DOCUMENT:Q98578  24-SEP-1993  [W_NT]
  2. TITLE   :How to Change the Title Bar Caption of the Command Prompt
  3. PRODUCT :Windows NT
  4. PROD/VER:3.10
  5. OPER/SYS:WINDOWS
  6. KEYWORDS:
  7.  
  8. --------------------------------------------------------------------
  9. The information in this article applies to:
  10.  
  11.  - Microsoft Windows NT operating system version 3.1
  12. --------------------------------------------------------------------
  13.  
  14. Summary:
  15.  
  16. To make the title bar caption of the Windows NT command prompt display
  17. the current directory path, do the following:
  18.  
  19. 1. Create a file somewhere in your Windows NT path that contains the
  20.    following line:
  21.  
  22.       @title %=c:%
  23.  
  24.    The name of this file should have a .CMD extension.
  25.  
  26. 2. Run Doskey with the following parameters:
  27.  
  28.       doskey cd=cd $*$T<name of the file you just created>
  29.  
  30. Whenever you subsequently use the CD command to change directories,
  31. the current directory will be displayed in the title bar of the
  32. command prompt.
  33.  
  34. Note: If you use the CD command without a space, Doskey cannot trap
  35. the command and change the title bar. For example, if you use the
  36. following command, the title bar will not display the current
  37. directory path:
  38.  
  39.    cd\
  40.  
  41. Additional reference words: 3.10
  42. KBCategory:
  43. KBSubCategory: WINNT 
  44.  
  45. =============================================================================
  46.  
  47. THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS
  48. PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.  MICROSOFT DISCLAIMS
  49. ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES
  50. OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  IN NO
  51. EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR
  52. ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL,
  53. CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF
  54. MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE
  55. POSSIBILITY OF SUCH DAMAGES.  SOME STATES DO NOT ALLOW THE EXCLUSION
  56. OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES
  57. SO THE FOREGOING LIMITATION MAY NOT APPLY.
  58.  
  59. Copyright Microsoft Corporation 1993.