Microsoft KB Archive/75127

= How to Modify the Command Prompt within MS-DOS Shell =

Article ID: 75127

Article Last Modified on 11/16/2006

-

APPLIES TO


 * Microsoft MS-DOS 5.0 Standard Edition
 * Microsoft MS-DOS 5.0a
 * Microsoft MS-DOS 6.0 Standard Edition

-



This article was previously published under Q75127



SUMMARY
To modify the prompt when using the Command Prompt program item in MS-DOS version 5.0 or later Shell, do the following:  Highlight the Command Prompt program item and choose Properties from the File menu. Modify the Commands option to the following

.BAT

where is any filename you want to specify. The default is COMMAND. .BAT should replace COMMAND.  Create the batch file .BAT. It should include the following:      echo off set pr=%prompt%          ; Saves the current prompt prompt %prompt% ; Makes a new prompt command                  ; Spawns a new COMMAND.COM file prompt %pr%              ; Resets the prompt can be any characters or escape sequences you want to include in the prompt. The prompt cannot be more than 127 characters in length.  Type EXIT to reset the prompt and return to Shell.

The above procedure will not modify the prompt when you use the SHIFT+F9=Command Prompt option. This method will return you to the current COMMAND.COM, leaving Shell resident.

Additional query words: 5.00 5.00a 6.00

Keywords: KB75127

-

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

© Microsoft Corporation. All rights reserved.