Hubbry Logo
MS-DOS EditorMS-DOS EditorMain
Open search
MS-DOS Editor
Community hub
MS-DOS Editor
logo
8 pages, 0 posts
0 subscribers
Be the first to start a discussion here.
Be the first to start a discussion here.
MS-DOS Editor
MS-DOS Editor
from Wikipedia
MS-DOS Editor
DeveloperMicrosoft
Initial releaseJune 1991; 34 years ago (1991-06)
Stable release
2.0.026 / 1995; 31 years ago (1995)
Operating systemMS-DOS, PC DOS, OS/2, Microsoft Windows
PlatformIntel x86, 16-bit
PredecessorEdlin
SuccessorWindows Notepad, Microsoft Edit (see below)
TypeText editor
LicenseSame as Windows
Websitelearn.microsoft.com/en-us/windows-server/administration/windows-commands/edit
Microsoft Edit
DeveloperMicrosoft
Initial release19 March 2025; 10 months ago (2025-03-19)[1]
Stable release
1.2.1[2] Edit this on Wikidata / 15 October 2025
Repositoryhttps://github.com/microsoft/edit Edit this on Wikidata
Written inRust
Operating systemWindows, Linux, macOS, BSD
Size250kB[3]
Available in11 languages[4]
List of languages
English, German, Spanish, French, Italian, Japanese, Korean, Brazilian Portuguese, Russian, Simplified Chinese, Traditional Chinese
TypeText editor
LicenseMIT License

MS-DOS Editor, commonly just called edit or edit.com, is a TUI text editor. Originally, it was a 16-bit application that shipped with MS-DOS 5.0 and later,[5] as well as all 32-bit x86 versions of Windows. It supersedes edlin, the standard editor in earlier versions of MS-DOS. Originally, EDIT.COM was a stub that ran QBasic in editor mode. Starting with Windows 95, MS-DOS Editor became a standalone program because QBasic did not ship with Windows. In 2025, Microsoft released a free and open-source remake.[3]

Overview

[edit]

Original

[edit]

The Editor version 1.0 appeared in MS-DOS 5.00, IBM PC DOS 5.0, OS/2, and Windows NT 4.0. This version relies on QBasic 1.0. Hence, it uses a text-based user interface (TUI), and its color scheme can be adjusted. It can only open one file, but can open the quick help file in a split window.

The Editor version 1.1 appeared in MS-DOS 6.0. It uses QBasic 1.1 but no new features were added to the Editor.

IBM PC DOS 6 dropped the Editor in favor of another text editor called E, which supports mouse and menus in version 7.0.

The Editor version 2.0 appeared with Windows 95, as standalone app that no longer requires QBasic. It has a multiple-document interface and can open up to 9 files. The screen can be split vertically into two panes which can be used to view two files simultaneously or different parts of the same file. It can also open files in binary mode, where a fixed number of characters are displayed per line, with newlines treated like any other character. This mode shows characters as hexadecimal characters (0-9 and A-F). Editor converts Unix newlines (LF) to DOS newlines (CRLF) and has mouse support. This version has been included with all 32-bit x86 versions. Being a 16-bit DOS app, it cannot run on x64, IA-64, or ARM64 versions of Windows.

The Editor may be used as a substitute for Windows Notepad, although the 16-bit version is limited to files smaller than 300 kB, depending on how much conventional memory is free.[6]

FreeDOS derivative

[edit]

The FreeDOS version was developed by Shaun Raven and is licensed under the GPL.[7]

Remake

[edit]

On May 18, 2025, Microsoft released an open-source recreation of the Editor written in the Rust programming language, simply named Edit, for modern versions of Windows.[8] The version number did not continue, resetting to 1.0.0. Edit was included with the Windows 11 2025 Update or 25H2.[9][10]

References

[edit]

Further reading

[edit]
[edit]
Revisions and contributorsEdit on WikipediaRead on Wikipedia
from Grokipedia
The MS-DOS Editor, commonly known as edit.com, is a text-based full-screen editor developed by for creating and modifying ASCII text files within the operating system. Introduced with MS-DOS 5.0 in June 1991, it replaced the earlier line-oriented utility and provided users with a more intuitive interface for text editing in a command-line environment. As a 16-bit text user interface (TUI) application, the MS-DOS Editor supported basic operations such as opening existing files, creating new ones, inserting and deleting text, searching and replacing content, and saving changes, all accessible via keyboard shortcuts and menu prompts. Key command-line options included /b for monochrome display to improve visibility on certain monitors, /h to expand the display to the maximum number of lines supported by the hardware, /r for read-only mode to prevent accidental modifications, and /s to suppress long filename support. It handled wildcard characters in filenames for batch operations and allowed loading binary files with specified line lengths via the /<nnn> parameter, though it was primarily designed for plain text editing. The editor's simplicity made it a staple tool for MS-DOS users, particularly for scripting batch files, configuring system settings, and basic programming tasks, and it remained compatible in subsequent Windows versions through at least Windows 10's 32-bit editions. In 2025, Microsoft released an open-source remake called "Edit," inspired by the original but enhanced with modern features like Unicode support and cross-platform compatibility; however, the classic MS-DOS Editor endures as a foundational element of early personal computing history.

History

Introduction and Development

The Editor was developed by in the late as a full-screen designed to supersede the line-based utility, which had been the standard editor in MS-DOS versions 1.0 through 4.0. This development addressed longstanding user complaints regarding EDLIN's inefficiency, particularly its cumbersome process for editing batch files and , which often required manual line numbering and lacked visual feedback. The editor drew influence from Microsoft's earlier M editor, a component of the Microsoft C 5.1 compiler released in March 1988, but was re-engineered as a distinct standalone utility for the MS-DOS environment. Released in June 1991, alongside 5.0, the MS-DOS Editor marked the operating system's first inclusion of a graphical in , providing a significant upgrade over prior command-line tools. As a 16-bit application executed via the EDIT.COM file, it was optimized for text-mode displays supporting up to 80 columns by 25 rows, with a compact footprint of approximately 38 KB to ensure compatibility with resource-constrained systems. Initially compatible only with PC compatibles equipped with at least 256 KB of RAM, it offered no mouse support at launch, relying entirely on keyboard navigation for accessibility on era-typical hardware.

Evolution and Inclusion in Windows

Following its introduction in MS-DOS 5.0, the MS-DOS Editor received incremental improvements in subsequent versions, including minor bug fixes and enhanced memory handling in MS-DOS 6.0 released in 1993, though no major new features were added. The editor remained largely unchanged in MS-DOS 7.0 and 8.0, which accompanied and , respectively, preserving its core functionality amid the transition to graphical environments. Starting with Windows 95, the MS-DOS Editor was ported and included as the standalone executable EDIT.COM in 32-bit x86 versions of Windows, from Windows 95 through Windows 10 (32-bit editions), to provide backward compatibility for DOS-based applications and scripts running in a command prompt or DOS emulation mode. This adaptation decoupled it from QBasic, which was no longer bundled in Windows distributions after Windows 95, allowing the editor to operate independently in the Windows subsystem. Specific enhancements in the Windows ports included better support for larger files, limited to a maximum of approximately 65,280 lines depending on available , a significant improvement over earlier DOS constraints, though practical limits varied with system resources. Unicode handling was rudimentary at best in these versions, constrained by the 16-bit architecture and command-line encoding, but the editor could process basic international characters in compatible console modes. The last official update to the editor occurred around 2001 with the release of , incorporating stability fixes for the 32-bit environment without altering its fundamental design. The editor was bundled as a standard component in retail editions of packages starting from version 5.0 and in OEM versions customized by hardware manufacturers, ensuring widespread availability for system configuration and scripting tasks. Primary support for the MS-DOS Editor effectively ended after in 2001, as it was excluded from 64-bit Windows versions like Vista and later due to incompatibility with the NT kernel's lack of native 16-bit DOS support, with recommending as the preferred tool for basic text editing in command-line and graphical contexts.

Features

Editing Capabilities

The MS-DOS Editor supports basic text insertion in two modes: insert mode, which is the default and indicated by an underscore cursor, where new characters shift existing text to the right; and overtype mode, toggled via the or Ctrl+V, where new characters replace existing ones and the cursor appears as a block. Deletion is handled by the key or Ctrl+G for the character at the cursor, or Ctrl+H for the preceding character, and Ctrl+T for the entire word to the right. Block operations allow users to mark text sections for manipulation by pressing F8 to set the start, extending the selection with or other navigation, and pressing F8 again to set the end, supporting blocks up to the entire file contents. Cut operations use Shift+Del or Ctrl+X to remove the marked block to a buffer, copy uses Ctrl+Ins or Ctrl+C to duplicate it without removal, and paste employs Shift+Ins or Ctrl+V to insert the buffer contents at the cursor; these functions enable efficient relocation or duplication of text segments. Search functionality is accessed via Ctrl+Q then F or the Search menu for forward matches, with F3 to repeat the previous search, and options for case sensitivity and whole-word matching toggled through the Search menu. Backward search is available via the menu. Replace operations occur through the Change dialog under the Search menu (Ctrl+Q then A), allowing global substitution without regular expressions, where users can verify each change, perform all replacements at once, or limit to the current selection; strings are enclosed in quotes if containing spaces, with doubled quotes escaping internal ones. Introduced in 5.0, the editor provides a single-level for most operations, activated by Alt+ or Alt+F5, reverting the last change such as insertions, deletions, or block moves, but without multi-level history or redo capability. File formatting is limited to text-mode operations without fonts or colors, featuring automatic word wrap at approximately 80 columns in display (though manual line breaks are required for hard wraps up to 256 characters per line) and tab expansion defaulting to 8 spaces, adjustable via the Options > Display menu for custom stops. Lacking syntax highlighting, the editor remains suitable for programming aids in editing simple ASCII-based files like batch (.BAT), system (.SYS), and executable (.COM) files due to its straightforward handling of plain text and integration with QBasic for BASIC source editing. In the base MS-DOS 5.0 version, the editor handles files up to the available conventional memory minus the editor's approximately 289 KB footprint, typically around 300 KB on a standard 640 KB system, constrained by conventional memory availability and requiring QBASIC.EXE for operation, with no native support for expanded memory via EMS or XMS in this release.

File Management and Limitations

The MS-DOS Editor is invoked from the command line using the syntax EDIT [filename] [/b] [/g] [/h] [/r] [/s] [/<nnn>], where specifying a opens an existing ASCII for editing or creates a new one if the file does not exist. Additional switches include /r to load the file in read-only mode, preventing modifications; /b for display; /g for fast screen updates on CGA monitors; /h to expand the display to the maximum number of lines supported by the hardware; /s to suppress support; and / to load binary files wrapping at nnn characters. It supports wildcards and multiple filenames to load several files into if available, displaying a file list and allowing switching between them (e.g., F6 for next file, Esc for previous), though only one file is actively edited at a time. Saving is performed manually via the (Alt+F, then S for Save or A for Save As), with the editor creating temporary files in the current during the session to hold unsaved changes; upon exit without saving, these temporary files may remain for potential recovery but are not automatically preserved. The editor supports full DOS path and drive specifications, such as EDIT C:\path\file.txt, allowing access to files across directories and drives within the constraints of the file system. Filenames are limited to the 8.3 format (up to eight characters for the base name and three for the extension), as enforced by conventions, preventing the use of long or extended filenames without truncation. There is no native support for network files, requiring files to reside on drives or floppies accessible via DOS redirectors if available. Key limitations stem from the editor's 16-bit architecture and reliance on conventional memory, with a maximum file size determined by available RAM minus the editor's approximately 289 KB footprint; in a typical 640 KB system, this caps editable files at around 300 KB, and attempting to open larger files results in an "out of memory" error or crash. The editor requires a minimum of about 256 KB of total conventional memory to load, though smaller files (under 128 KB) may function with less free RAM if the system meets DOS 5.0's base requirements. Error handling is basic, displaying standard DOS error codes such as "disk full" (error 112) or "access denied" (error 5) for I/O issues, without advanced recovery options, built-in backups, or version control features. Editing binary files is possible using the /nnn switch to load and wrap content at a specified (e.g., EDIT /80 binary.exe), but the editor treats the data as text and issues no explicit warning; saving changes converts it to ASCII format, which can corrupt executables or non-text data if not handled carefully.

User Interface

Keyboard Shortcuts

The MS-DOS Editor provides a set of keyboard shortcuts optimized for text navigation and manipulation without mouse support, compatible with standard 101-key keyboards and emphasizing efficiency for command-line users. These shortcuts, introduced with the editor in MS-DOS 5.0 and unchanged through subsequent versions, allow for rapid cursor positioning, text selection, editing operations, and access to menus and functions. Cursor movement relies on for basic character and line navigation, with Ctrl combined with enabling word-level jumps to speed up positioning in longer documents. Page Up and Page Down handle page scrolling, while and End position the cursor at the start or end of the current line; Ctrl + and Ctrl + End extend this to the document's beginning or end, respectively. Text selection and editing use Shift combined with movement keys to mark blocks of text, facilitating operations like copying or deletion. Common editing actions include Ctrl + Ins to copy selected text, Shift + Ins to paste from the , to delete characters or blocks, and Ins to toggle between insert and overwrite modes for precise text entry. Menu access is activated by the , with specific combinations like Alt + F opening the and Alt + X prompting to exit the editor (with save confirmation if changes are present). Search functions are invoked using F3 to repeat the previous search or Ctrl + Q followed by F to set up a new search. These shortcuts ensure full functionality in environments lacking graphical input devices. The following table summarizes key keyboard shortcuts, categorized for clarity:
CategoryShortcutDescription
Cursor Movement↑ / ↓ Move up/down one line
← / → Move left/right one character
Ctrl + ← / →Jump left/right one word
PgUp / PgDnScroll up/down one page
/ EndMove to start/end of current line
Ctrl + / EndMove to start/end of document
SelectionShift + Select text in direction of arrow
Shift + Ctrl + ← / →Select one word left/right
EditingCtrl + InsCopy selected text to
Shift + InsPaste content at cursor
Del or selected block
InsToggle insert/overwrite mode
Menu & SearchAlt + key (e.g., F)Open specific menu (File, Edit, etc.)
EscCancel current operation or dialog
F3Repeat previous search
Ctrl + Q, then FInvoke search setup dialog
Exit & OtherAlt + XExit editor (prompts to save if needed)
F1Display context-sensitive help
These shortcuts cover core operations, with additional function keys like Shift + F1 for getting started help displayed in the editor's interface. The MS-DOS Editor features a optimized for the constraints of DOS environments, utilizing a full-screen layout that divides the display into distinct regions for efficient navigation and editing. At the top of the screen is the , followed by a status line that displays key information such as the current , cursor position in line and column numbers, and the active insert/overwrite mode. The central main area occupies the bulk of the screen, providing up to 80 columns by 24 rows for text editing, with the cursor allowing navigation via or other controls. At the bottom is a help line that shows prompts for the current command or mode, offering immediate guidance without interrupting the . The menu bar consists of six pull-down menus—File, Edit, Search, View, Options, and Help—accessible by pressing the to activate it, followed by the first letter of the name or to navigate. Each menu unfolds downward in a hierarchical list containing 4 to 6 items, selected via , Enter, or the highlighted hotkeys, and closes upon selection or Escape. The specifically includes options for New (to create a blank ), Open (to load an existing ASCII file), Save (to write changes to the current file), Save As (to specify a new filename with 8.3 DOS conventions), Print (to output to a connected printer), and Exit (to close the editor), but lacks advanced features such as selection or . This structure emphasizes simplicity, reflecting the editor's design for basic text manipulation in resource-limited systems. The help system integrates seamlessly into the interface, activated by pressing F1 for context-sensitive assistance tailored to the current screen, , or dialog, drawing from the bundled EDIT.HLP file. It presents information through static pull-down menus that list all available commands and options in a read-only format, without hyperlinks or interactive navigation, requiring users to return to the main interface to apply changes. For broader reference, the Help provides an index of topics, but all content remains text-based and non-hyperlinked to maintain compatibility with DOS hardware. Display rendering in the Editor supports both and color modes, adapting to available adapters such as CGA, EGA, or VGA, with default schemes like white text on a blue background for readability on composite monitors. Users can toggle a line via the Options menu, which overlays column guides and line numbers at the top of the text area to aid precise formatting, though it reduces visible editing space. The interface redraws automatically upon screen resizes, albeit with limitations inherent to DOS's fixed-resolution environment, and does not support split-screen views or multiple overlapping windows, prioritizing single-document focus.

Derivatives

FreeDOS Version

The FreeDOS version of the MS-DOS Editor, known as EDIT.COM, is a free and open-source clone developed as part of the project to provide a compatible for the open-source DOS-compatible operating system. It was created in the early 2000s using the DFLAT (TUI) toolkit, originally described in , to replicate and improve upon the functionality of the original while ensuring compatibility with DOS environments. Released under the GNU General Public License version 2.0 (GPL-2.0), it allows users to modify and distribute the source code freely. Key enhancements in the FreeDOS Edit include support for undo operations (Ctrl+Z), cut/copy/paste functions (Ctrl+X/C/V), and preservation of tab characters during editing, features refined through iterative development from early versions like 0.5d in 2002. It also incorporates bug fixes for issues such as interrupt vector handling, addressing potential crashes in certain scenarios observed in prior iterations. Unlike the original 16-bit MS-DOS Editor, which was limited by memory constraints (typically around 64 KB per file), the FreeDOS version maintains similar DOS-era limits but benefits from ongoing maintenance for stability in emulated environments. Additional utilities, such as a built-in calendar and an ASCII table for extended characters (code page 437), aid in programming and text manipulation tasks. Display options include monochrome mode (/B), high-resolution mode (/H), and read-only mode (/R) for specialized use cases. The editor first appeared in 1.0, the project's initial stable release in September 2006, and has been updated periodically to align with FreeDOS kernel improvements. As of 2025, version 0.9b is included in 1.4, released in April 2025, with enhancements focused on stability and compatibility for modern , including support for multilingual interfaces in English, German, French, Turkish, and Swedish. Designed for x86-based kernels, it remains backward-compatible with text files and batch scripts, enabling seamless use of legacy content. It can also run in virtual machines or emulators like on and other hosts, extending its utility beyond native DOS hardware. The editor is distributed as a core component in installation packages, such as the Full USB and LiveCD editions, with full hosted on for community contributions.

2025 Open-Source Remake

In May 2025, Microsoft announced the release of an open-source remake of the MS-DOS Editor, simply named Edit, under the MIT license and hosted on GitHub. Developed in Rust to prioritize performance, memory safety, and cross-platform compatibility, the project was led by members of the Windows Terminal team as a modern successor to the classic tool. This initiative aligns with Microsoft's ongoing efforts to update legacy command-line utilities for contemporary environments. The remake undergoes a comprehensive technical overhaul, enabling seamless operation on Windows, macOS, and through terminal-based execution. Its emulates the original's simplicity while introducing enhancements like true color support via Oklab color blending for customizable themes, input for navigation, and support for unlimited file sizes—addressing the original's constraints on large documents. The binary remains lightweight at under 250 KB, preserving the tool's efficient footprint. Key new features expand usability beyond the 1991 original, including multi-level undo for iterative editing, regular expression support in search and replace operations (via Ctrl+R), and configurable syntax highlighting for common formats like batch scripts and configuration files. Performance is boosted by SIMD-optimized search routines that exploit modern CPU instructions for rapid text processing. These additions make Edit suitable for quick edits in diverse workflows without the bloat of full IDEs. Maintaining fidelity to its predecessor, the Edit executable (edit.exe) replicates the command-line invocation and modaless editing style of EDIT.COM, complete with familiar keyboard shortcuts and screen layout. A backward-compatible mode ensures compatibility with legacy DOS batch scripts and environments, allowing seamless integration in emulated or virtualized setups. This balance of nostalgia and modernity was highlighted during the project's unveiling at 2025. By November 2025, Edit achieved version 1.0 stable status, marking a mature release with bug fixes and contributions. It has been natively integrated into for enhanced accessibility and has proven popular in circles for lightweight, terminal-centric file editing. The repository quickly amassed over 10,000 , reflecting strong interest and adoption among developers seeking a reliable, no-frills alternative to heavier editors.

Legacy

Influence on Successors

The MS-DOS Editor served as a direct precursor to other console-based text editors in Microsoft's ecosystem. Despite the shift to graphical interfaces, EDIT.COM remained available for DOS compatibility in 32-bit Windows environments through the NTVDM subsystem, supporting legacy applications until its removal in 64-bit editions with (2007) and fully in (2021). In broader terms, the MS-DOS Editor inspired subsequent console-based tools within Microsoft's lineup, such as the MEP editor included in Windows NT SDKs from version 3.1 through 4.0, which adapted its text-handling routines for the NT kernel's environment. Elements of its straightforward menu-driven paradigm echoed in later console interfaces, including the integrated scripting environment of PowerShell ISE and terminal extensions in , where simplified navigation and full-screen text manipulation persist as foundational design choices for command-line productivity. The editor's introduction of full-screen editing in the DOS ecosystem marked a significant cultural shift, moving beyond line-oriented tools like to provide an intuitive, immersive interface that became a staple for early PC users and influenced the of text manipulation in resource-constrained environments. This approach popularized accessible editing workflows, as seen in third-party DOS tools from the late 1980s and early 1990s that adopted similar full-screen layouts, and it continues to be referenced in analyses of command-line software evolution. Lessons from the Editor's limitations, including its dependence on for file sizes (approximately 300 kB in typical setups) and lack of support, underscored the need for more robust alternatives, prompting to develop richer options like in , which addressed these gaps with RTF handling and extended character sets in subsequent updates. Educationally, the Editor played a key role in introducing generations to basic text editing and programming concepts, serving as the default tool in MS-DOS environments for writing and modifying batch files, scripts, and early C code in curricula through the and into the , fostering foundational skills in command-line interaction.

Current Availability

The original binaries of the Editor (edit.com) are available for download from archival sites such as WinWorld, which hosts complete distributions including version 5.0 and later where the editor was bundled, or from Microsoft's official repository containing and binaries for early versions like 1.25, 2.0, and 4.00. These binaries, being 16-bit DOS executables, require emulation to run on modern hardware; popular free, cross-platform options include for general compatibility and PCem (or its successor ) for cycle-accurate hardware simulation of 1980s-1990s PCs. On Windows, the MS-DOS Editor runs natively via the command prompt in 32-bit editions up to , where edit.com is included in the system files and supported via the NTVDM subsystem, but requires emulation or in 64-bit editions from (2007) onward and in all editions of (2021). For and 11 in 64-bit mode, is necessary, such as running the binaries in a third-party virtual machine like with an guest OS, though no official Windows Subsystem for DOS exists and compatibility modes alone are insufficient for 16-bit execution. In , a free and open-source MS-DOS-compatible operating system, a compatible version of the Editor is bundled in distributions including the current FreeDOS 1.4 released on April 5, 2025, which can be downloaded as a bootable ISO from the official site and installed on real hardware or virtualized in tools like . The FreeDOS Editor replicates much of the original's functionality and interface, with installers provided directly on the project's website for easy setup. Microsoft released a modern open-source remake of the MS-DOS Editor in May 2025 (see Derivatives section). For emulation of the original Editor, DOSBox-X offers enhanced features like improved file handling and configuration options over standard , while online demonstrations and playable versions are hosted on the for browser-based access without local installation. Note that while has abandoned official support for the original MS-DOS Editor since around 2001, the software's copyright persists and it is not in the public domain, though archival distribution for personal use is common in retro computing communities. Community resources for troubleshooting and setup include the VOGONS forums, where users discuss emulation configurations, compatibility issues, and tips for running the Editor on vintage or modern systems.

References

Add your contribution
Related Hubs
User Avatar
No comments yet.