Copying Text Between DOS and Windows 3.11
Microsoft Windows 3.11 bridged the gap between legacy character-mode software and modern graphical environments through integrated Clipboard utilities and Virtual 8086 mode. By leveraging the 386 Enhanced Mode architecture, the operating system enabled users to copy plain text out of MS-DOS programs into the Windows Clipboard and inject Clipboard text back into DOS command lines and applications.
The Underlying Technology
Windows 3.11 handled DOS multitasking through its 386 Enhanced Mode,
which ran each DOS session inside an isolated Virtual 8086 machine
managed by WIN386.EXE. Interfacing between these virtual
machines and the Windows graphical interface was handled by
WINOLDAP.MOD (Windows Old Application support module)
alongside virtual device drivers such as the Virtual Keyboard Driver
(VKD.386).
Because DOS programs typically lacked native awareness of Windows APIs or the Windows Clipboard, Windows managed the transfer externally by directly reading screen buffers and simulating keyboard hardware input.
Copying Text from DOS to Windows
To transfer text out of an MS-DOS environment into Windows 3.11, the
DOS program generally had to run in a window rather than full-screen
(toggled using the Alt+Enter shortcut).
- Marking Text: The user opened the DOS window's
Control menu (by clicking the top-left icon or pressing
Alt+Space) and selected Edit, followed by Mark. - Selecting: Using the mouse or the arrow keys while
holding
Shift, the user selected a rectangular block of characters directly on the screen. - Copying: Pressing
Enteror right-clicking committed the selection. Windows read the text directly from the virtual video display memory assigned to that DOS machine, converted the character bytes from the OEM code page to ANSI text, and stored the data in the Windows Clipboard. - Pasting: The user switched to a Windows application
(such as Notepad or Write) and executed a standard paste command
(
Ctrl+V,Shift+Insert, or Edit > Paste).
If the DOS program ran in full-screen mode, users could capture the
entire text display to the Clipboard by pressing
Alt+Print Screen before pasting it into a Windows
application.
Copying Text from Windows to DOS
DOS programs could not natively read the Windows Clipboard memory space. Therefore, Windows 3.11 reversed the transfer process by translating Clipboard contents into virtual keystrokes.
- Capturing Windows Text: The user copied text to the Clipboard within any Windows application using standard copy commands.
- Targeting DOS: The user focused the target DOS application inside a window.
- Pasting: Opening the DOS window's Control menu
(
Alt+Space), the user navigated to Edit and selected Paste. - Input Simulation: The Windows system driver retrieved the text from the Clipboard, converted the ANSI characters into the corresponding MS-DOS OEM character codes, and sequentially pushed them into the DOS application's keyboard input buffer.
To the DOS application, the pasted text appeared identical to rapid manual typing from a physical keyboard.