Boot MS-DOS 6.22 Directly into Windows 3.11

Configuring MS-DOS 6.22 to launch directly into Windows 3.11 bypasses the standard command prompt, creating a seamless boot experience similar to modern operating systems. This automatic startup is achieved by adding the Windows execution command to the end of the MS-DOS startup batch file, AUTOEXEC.BAT. Once configured, the system loads all required hardware drivers and DOS memory managers before immediately handing control over to the Windows graphical environment.

The Role of AUTOEXEC.BAT

When MS-DOS 6.22 initializes, it sequentially processes two main configuration files located in the root directory of the boot drive (C:\): CONFIG.SYS and AUTOEXEC.BAT. While CONFIG.SYS handles low-level system configuration and device drivers, AUTOEXEC.BAT executes standard DOS commands and batch operations automatically. To load Windows 3.11 on boot, the win command must be appended to the very end of AUTOEXEC.BAT.

Step-by-Step Configuration

  1. Boot into MS-DOS: Start the computer or virtual machine and wait for the C:\> prompt to appear.
  2. Open the Text Editor: Type the following command and press Enter to open the startup file in the built-in MS-DOS Editor:
    edit C:\AUTOEXEC.BAT
  3. Verify the Windows Path: Ensure the PATH line in the file includes the Windows directory (typically C:\WINDOWS). It usually looks similar to:
    PATH C:\DOS;C:\WINDOWS
  4. Add the Launch Command: Use the arrow keys to navigate to the very last line of the file. On a new line at the bottom, type:
    win
    (Note: If the PATH variable does not include the Windows directory, you can explicitly define the full path instead by entering C:\WINDOWS\WIN.)
  5. Save the File: Press Alt + F to open the File menu, select Save, then press Alt + F and select Exit to return to the DOS prompt.
  6. Restart the System: Reboot the computer by pressing Ctrl + Alt + Delete.

Upon restarting, MS-DOS 6.22 will process the system files, run AUTOEXEC.BAT, and automatically execute the win command to load Windows 3.11 without requiring manual user input.

Bypassing Automatic Boot

If system maintenance or command-line troubleshooting is required, you can bypass the automatic loading of Windows by using the MS-DOS interactive startup. When the message "Starting MS-DOS..." appears on screen during boot, press F8 to step through CONFIG.SYS and AUTOEXEC.BAT line-by-line, allowing you to reject the win command, or press F5 to perform a clean boot straight to the DOS command prompt.