4.064 bytes |
Service Hints & Tips |
Document ID: DSET-3FDFZW |
Aptiva - Using the DOS prompt when in Windows
Applicable to: United States
When working with DOS and Windows, there can be some confusion in trying to recall whether the DOS session was started from the DOS Prompt icon in Windows or started after shutting down the Windows session. While this is not normally a concern, starting DOS from within a Windows session (by using the DOS Prompt icon) can result in less conventional memory for DOS programs and games.
To easily determine when Windows is running in the background, you can change the appearance of the DOS prompt to show when the DOS session is running inside of a Windows session. You can also add a reminder, imbedded in this special DOS prompt, showing how to return to Windows rather than resorting to rebooting the system.
To change the DOS prompt for DOS sessions started from within Windows, add the line:
1. Open the AUTOEXEC.BAT file and locate the PROMPT line entry
2. Add a new line, after the PROMPT line entry, that looks like this:
SET WINPMT=[DOS Prompt in Windows! Enter EXIT to return.]$_$P$G
This change to the Autoexec.bat file will display the following DOS prompt when you start a DOS session from within Windows:
[DOS Prompt in Windows! Enter EXIT to return.]
C:\>
If you have ANSI.SYS set up in the CONFIG.SYS file (see the article "Colors at the DOS Prompt"), you can have the information line displayed in a color other than white, allowing it to be emphasized. As an example, set the WINPMT line to read:
SET WINPMT=$E[32[DOS Prompt in Windows! Enter EXIT to return.]$_$P$G
The "[DOS Prompt in Windows! Enter EXIT to return.]" line will be displayed in green, followed by the current directory on the next line in white.
Search Keywords |
| |
Hint Category |
DOS/Windows 3.x | |
Date Created |
21-03-97 | |
Last Updated |
23-03-99 | |
Revision Date |
23-03-2000 | |
Brand |
IBM Aptiva | |
Product Family |
Aptiva | |
Machine Type |
2168, 2144 | |
Model |
5R5; M91; 2R5; 2R7; 2R8; M30; M35; M50; 2R6; 4R7; 4R8; M40; M54; M58; 3R0; 3R8; M60; M70; 1R2; 66P; 67P; 86P; OR8; 1R1; 1R3; 1R5; 22P; 24P; 25P; 27P; 29P; 63P; 67P; 82P; 83P; OR6; OR7; OR9; 1R0; 1R1; 26P; 62P; 2R0; P30; 2R3; S15 | |
TypeModel |
| |
Retain Tip (if applicable) |
| |
Reverse Doclinks |