DOCUMENT:Q92366 02-OCT-1999 [win95x] TITLE :Changing MS-DOS Command Prompt Under Windows PRODUCT :Microsoft Windows 95.x Retail Product PROD/VER:WINDOWS:3.0,3.0a,3.1,3.11 OPER/SYS: KEYWORDS: ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Windows versions 3.0, 3.0a, 3.1, 3.11 ------------------------------------------------------------------------------- SUMMARY ======= You can display a custom MS-DOS prompt when you run MS-DOS Prompt from Program Manager. Changing the MS-DOS Prompt Under Windows 3.1 and 3.11 ----------------------------------------------------- Under Windows 3.1 you can change the look of the MS-DOS command prompt inside of Windows because the WINPMT environment variable was added to Windows. You can change this variable by using the SET command in the AUTOEXEC.BAT file. For example: SET WINPMT=Windows Shell - $p$g Changing the MS-DOS Prompt Under Windows 3.0 and 3.0a ----------------------------------------------------- To change the MS-DOS command prompt in Windows 3.0 and 3.0a, you must create a batch file to modify the PROMPT environment variable. You can then start the batch file instead of COMMAND.COM. The following is a sample batch file: @echo off prompt Windows Shell - $p$g command.com After making the batch file, change the MS-DOS Prompt icon's program name from COMMAND.COM to the name of the batch file from the Program Item Properties dialog box. Additional query words: 3.00 3.00a 3.10 dos box prompt prmt pmtwinprompt winprompt= winprmt= winpmt= ====================================================================== Keywords : Technology : kbWin3xSearch kbZNotKeyword3 kbWin300 kbWin300a kbWin310 kbWin311 Version : WINDOWS:3.0,3.0a,3.1,3.11 ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 1999.