MS-DOS 20027 224640268 2008-07-09T19:46:27Z Insanity Incarnate 3763104 Reverted edits by [[Special:Contributions/68.211.211.16|68.211.211.16]] to last version by 69.225.40.52 (using [[WP:HG|Huggle]]) {{FixHTML|beg}} {{Infobox_OS | name = MS-DOS | logo = [[Image:MS-DOS icon.png]] | screenshot = <!-- Do NOT change the screenshot unless there is BIG change in the UI. When taking screenshot, please resize your window (e.g. 640*480), disable your extensions and use the default theme. -->[[Image:StartingMsdos.png]] | caption = An example of MS-DOS's command-line interface, this one showing that the current directory is the root of drive C. | developer = [[Microsoft|Microsoft Corporation]] | family = [[DOS]] | source_model = [[Closed source]] | kernel_type = [[Monolithic kernel]] | supported_platforms = [[x86]] | working_state = Discontinued | latest_release_version = 8.0 | latest_release_date = [[September 14]] [[2000]] | marketing_target = | prog_language = [[C (programming language)|C]], [[Pascal (programming language)|Pascal]], [[QBasic]], [[Batch file|Batch]], [[Perl]] etc. | ui = [[Command line interface]], [[Text user interface]] | license = [[Proprietary software|Proprietary]] | website = }} {{FixHTML|end}} '''MS-DOS''' (short for '''M'''icro'''s'''oft '''D'''isk '''O'''perating '''S'''ystem) is an [[operating system]] commercialized by [[Microsoft]]. It was the most commonly used member of the [[DOS]] family of operating systems and was the dominant operating system for computers during the 1980s. It was based on the [[Intel 8086]] family of microprocessors, particularly the [[IBM PC]] and [[PC compatible|compatibles]]. It was gradually replaced on consumer desktop computers by operating systems offering a [[graphical user interface]] (GUI), in particular by various generations of the [[Microsoft Windows]] operating system. It was originally known as '''[[86-DOS|QDOS]]''' ('''Q'''uick and '''D'''irty '''O'''perating '''S'''ystem) and [[86-DOS]].<ref>[http://www.patersontech.com/Dos/Byte/History.html A Short History of MS-DOS<!-- Bot generated title -->]</ref> MS-DOS was originally released in 1981 and had eight major versions released before Microsoft stopped development in 2000. It was the key product in Microsoft's growth from a [[programming language]]s company to a diverse software development firm, providing the company with essential revenue and marketing resources. It was also the underlying basic operating system on which early versions of Windows ran as a GUI. {{TOClimit|limit=2}} ==History== {{main|DOS}} MS-DOS was a renamed form of [[86-DOS]] by [[Seattle Computer Products]]. It began as an operating system for the then-new [[Intel 8086]]. Originally MS-DOS was designed to be an operating system that could run on any 8086-family computer. Each computer would have its own distinct hardware and its own version of MS-DOS; programs would make standard calls to the operating system, and each version of MS-DOS would translate these calls into the necessary commands to send to the hardware. Software would be written for the operating system, not the computer. However, to make their programs run faster, developers often violated the concept of accessing hardware through the operating system. The greater speed attainable by direct control of hardware was of particular importance when running [[computer game]]s. IBM-compatible architecture then became the goal. Soon all 8086-family computers closely emulated IBM's hardware, and a single version of MS-DOS was all that was needed for the market. While MS-DOS appeared on [[IBM PC compatible|PC clones]], true IBM computers used [[IBM PC-DOS|PC-DOS]], a rebranded form of MS-DOS. Incidentally, the dependence on IBM-compatible hardware caused major problems for the computer industry when the original design had to be changed. For example, the original design could support no more than 640 kilobytes of memory. Manufacturers had to develop complicated schemes to access additional memory. This would not have been a limitation if the original idea of interfacing with hardware through MS-DOS had endured. ==Versions== {{main|Comparison of x86 DOS operating systems}} ==Competition== [[Image:Msdosad.jpg|left|thumb|200px|The original MS-DOS advertisement in 1981.]] On microcomputers based on the Intel 8086 and 8088 processors&mdash;including but by no means restricted to the IBM PC (and clones) architecture&mdash;the initial competition to the PC-DOS/MS-DOS line came from [[Digital Research]], whose [[CP/M]] operating system had inspired MS-DOS. Digital Research released [[CP/M-86]] a few months after MS-DOS, and it was offered as an alternative to MS-DOS and Microsoft's licensing requirements, but at a higher price. [[Executable program]]s for CP/M-86 and MS-DOS were not interchangeable with each other; much [[applications software]] was sold in both MS-DOS and CP/M-86 versions until MS-DOS became preponderant (later Digital Research operating systems could run both MS-DOS and CP/M-86 software). MS-DOS supported the simple [[COM file|.COM]] and the more advanced relocatable [[EXE|.EXE]] executable file formats; CP/M-86 a relocatable format using the [[file extension]] [[CMD file (CP/M)|.CMD]]. In the later days of MS-DOS, once the IBM-compatible platform was chosen, one would buy any PC clone, get any copy of MS-DOS (or IBM-branded MS-DOS, i.e., PC-DOS)&mdash;done. Many people do not realise that in the early days one chose an IBM PC, or a Sirius, or Apricot, or other make; these machines all had different architecture and did not even accept the same expansion cards; many of them were not limited to a maximum of 640 kilobytes of system memory, unlike the PC and clones. Then the decision whether to use MS-DOS or CP/M-86 had to be taken, and the appropriate one had to be acquired from the computer manufacturer; it was not possible to use versions of MS-DOS, or PC-DOS, interchangeably. One was then tied to using software for the operating system chosen (or, funds permitting, having floppy disks for both, and booting the appropriate one). In the business world the 808x-based machines that MS-DOS was tied to faced competition from the [[Unix]] operating system which ran on many different hardware architectures. Microsoft themselves sold a version of Unix for the PC called [[Xenix]]. In the emerging world of home users, a variety of other computers based on various other processors were in serious competition with the IBM PC: the [[Apple II]], early [[Apple Macintosh]], the [[Commodore 64]] and others did not use the 808x processor; many 808x machines of different architectures used custom versions of MS-DOS. At first all these machines were in competition. In time the IBM PC hardware configuration became dominant in the 808x market as software written to communicate directly with the PC hardware without using standard operating system calls ran much faster, but on true PC-compatibles only. Non-PC-compatible 808x machines were too small a market to have fast software written for them alone, and the market remained open only for IBM PCs and machines that closely imitated their architecture, all running either a single version of MS-DOS compatible only with PCs, or the equivalent IBM PC-DOS. Most clones cost much less than IBM-branded machines of similar performance, and became widely used by home users, while IBM PCs had a large share of the business computer market. Microsoft and IBM together began what was intended as the follow-on to MS/PC-DOS, called [[OS/2]]. When OS/2 was released in 1987, Microsoft began an advertising campaign announcing that "DOS is Dead" and stating that version 4 was the last full release. MS-DOS had grown in spurts, with many significant features being taken (or duplicated) from other products and operating systems, as well as incorporating the functionality of tools and utilities developed by independent companies to improve the functionality of MS-DOS, including [[Norton Utilities]], [[PC Tools (Central Point Software)|PC Tools]] ([[Microsoft Anti-Virus]]), [[QEMM]] expanded memory manager, [[DOS/4GW]] (a [[32-bit]] [[DOS extender]]), [[Stac]]ker disk compression, and others. OS/2 was designed for efficient multitasking&mdash;an IBM speciality derived from deep experience with mainframe operating systems&mdash;and offered a number of advanced features that had been designed together with similar [[look and feel]]; it was seen as the legitimate heir to the "kludgy" DOS platform. During the period when Digital Research was competing in the operating system market some computers, like [[PC-1512| Amstrad PC-1512]], were sold with floppy disks for two operating systems (only one of which could be used at a time), MS-DOS and CP-M86 or a derivative of it. Digital Research produced [[DOS Plus]], which was compatible with MS-DOS 2.11, supported CP/M-86 programs, had additional features including multi-tasking, and could read and write disks in CP/M and MS-DOS format. While OS/2 was under protracted development, Digital Research released the MS-DOS compatible [[DR-DOS]] 5, which included features only available as third-party add-ons for MS-DOS (and still maintained considerable internal CP/M-86 compatibility). Unwilling to lose any portion of the market, Microsoft responded by announcing the "pending" release of MS-DOS 5.0 in May 1990. This effectively killed most DR-DOS sales until the actual release of MS-DOS 5.0 in June 1991. Digital Research brought out DR-DOS 6, which sold well until the "pre-announcement" of MS-DOS 6.0 again stifled the sales of DR-DOS. Microsoft has been accused of carefully orchestrating leaks about future versions of MS-DOS in an attempt to create what in the industry is called FUD (fear, uncertainty, and doubt) regarding DR-DOS. For example, in October 1990, shortly after the release of DR-DOS 5.0, and long before the eventual June 1991 release of MS-DOS 5.0, stories on feature enhancements in MS-DOS started to appear in ''InfoWorld'' and ''PC Week''. Brad Silverberg, Vice President of Systems Software at Microsoft and General Manager of its Windows and MS-DOS Business Unit, wrote a forceful letter to ''PC Week'' (November 5, 1990), denying that Microsoft was engaged in FUD tactics ("to serve our customers better, we decided to be more forthcoming about version 5.0") and denying that Microsoft copied features from DR-DOS: <blockquote>"The feature enhancements of MS-DOS version 5.0 were decided and development was begun long before we heard about DR-DOS 5.0. There will be some similar features. With 50 million MS-DOS users, it shouldn't be surprising that DRI has heard some of the same requests from customers that we have." – (Schulman et al. [[1994]]). <ref name="undocumenteddos">{{cite book | last=Schulman | first=Andrew | year=1994 | title=Undocumented DOS: A Programmer's Guide to Reserved MS-DOS Functions and Data Structures | edition=2nd ed. | publisher=[[Addison-Wesley]] | id=ISBN 0-201-63287-X }}</ref></blockquote> The pact between Microsoft and IBM to promote OS/2 began to fall apart in 1990 when [[Windows 3.0]] became a marketplace success. Much of Microsoft's further contributions to OS/2 also went in to creating a third GUI replacement for DOS, [[Windows NT]]. IBM, which had already been developing the next version of OS/2, carried on development of the platform without Microsoft and sold it as the alternative to DOS and Windows. ==End of MS-DOS== [[Image:Vistados.jpg|right|thumb|200px|MS-DOS lingers in Windows Vista.]] MS-DOS has effectively ceased to exist as a platform for desktop computing. Since the releases of [[Windows 9x]], it was integrated as a full product mostly used for [[bootstrapping (computing)|bootstrapping]], and no longer officially released as a standalone DOS, although at first DOS 7 (which was the DOS part included in Windows 95) had been developed as a standalone OS{{Fact|date=April 2008}}. It was still available, but became increasingly irrelevant as development shifted to the [[Windows API]]. Windows XP contains a copy of the core MS-DOS 8 files from Windows Millennium, accessible only by formatting a floppy as an "MS-DOS startup disk". Attempting to run <code>COMMAND.COM</code> from such a disk under the NTVDM results in the message "Incorrect MS-DOS version".{{Fact|date=July 2008}} (Note that the DOS boot disk created by Windows XP is even more stripped-down than that created in Windows 98, as it does not include CD-ROM support.) With Windows Vista the files on the startup disk are dated 18th April 2005 but are otherwise unchanged, including the string "MS-DOS Version 8 (C) Copyright 1981-1999 Microsoft Corp" inside <code>COMMAND.COM</code>. Today, DOS is still used in embedded x86 systems due to its simple architecture, and minimal memory and processor requirements. The [[command line interpreter]] of [[Windows NT|NT]]-based versions of Windows, [[cmd.exe]], maintains most of the same commands and some compatibility with DOS batch files. ==Legal issues== As a response to [[Digital Research]]'s [[DR-DOS]] 6.0, which bundled SuperStor disk compression, Microsoft opened negotiations with [[Stac Electronics]], vendor of the most popular DOS disk compression tool, Stacker. In the [[due diligence]] process, Stac engineers had shown Microsoft some Stacker source code. Stac was unwilling to meet Microsoft's terms for licensing Stacker and withdrew from the negotiations. Microsoft chose to license Vertisoft's DoubleDisk, using it as the core for its DoubleSpace disk compression.<ref>BYTE Magazine, [http://www.byte.com/art/9402/sec6/art1.htm How Safe is Disk Compression?], February, 1994.</ref> MS-DOS 6.0 and 6.20 were released in 1993, both including the Microsoft DoubleSpace disk compression utility program. Stac successfully sued Microsoft for [[patent]] infringement regarding the compression algorithm used in DoubleSpace. This resulted in the 1994 release of MS-DOS 6.21, which had disk-compression removed. Shortly afterwards came version 6.22, with a new version of the disk compression system, DriveSpace, which had a different compression algorithm to avoid the infringing code. Prior to 1995, Microsoft licensed MS-DOS (and Windows) to computer manufacturers under three types of agreement: per-processor (a fee for each system the company sold), per-system (a fee for each system of a particular model), or per-copy (a fee for each copy of MS-DOS installed). The largest manufacturers used the per-processor arrangement, which had the lowest fee. This arrangement made it expensive for the large manufacturers to migrate to any other operating system, such as DR-DOS. In [[1991]] the US government [[Federal Trade Commission]] began investigating Microsoft's licensing procedures resulting in a 1994 settlement agreement limiting Microsoft to per-copy licensing. Digital Research did not gain by this settlement, and years later its successor in interest [[SCO Group|Caldera]] sued Microsoft for damages. This lawsuit was settled with a monetary payment of 150 million dollars. Microsoft also used a variety of tactics in MS-DOS and several of their applications and development tools that, while operating perfectly when running on genuine MS-DOS (and PC-DOS), would break when run on another vendor's implementation of DOS. Notable examples of this practice included: * Microsoft QuickC v2.5, a.k.a. Programmer's Workbench and Microsoft C v6.0, modified the program's [[Program Segment Prefix]] using undocumented DOS functions, and then checked whether or not the associated value changed in a fixed position within the DOS data segment (also undocumented). <ref name="undocumenteddos" /> * The (once infamous) [[AARD code]], a block of code in the Windows 3.1 beta installer. It was XOR encrypted, self-modifying, and deliberately obfuscated, using various undocumented DOS structures and functions to determine whether or not Windows really was running on MS-DOS. <ref name="undocumenteddos" /> * Interrupt routines called by Windows to inform MS-DOS that Windows is starting/exiting, information that MS-DOS retained in an IN_WINDOWS flag, in spite of the fact that MS-DOS and Windows were supposed to be two separate products. <ref name="undocumenteddos" /> ==The Windows command-line interface== All versions of [[Microsoft Windows]] have had an MS-DOS like [[command-line interface]] (CLI). Versions of Windows (up to 3.11) ran as a GUI running under MS-DOS. Windows 95 and 98 had an MS-DOS prompt which behaved very much like MS-DOS, with added facilities for such features as long file names. The true 32-bit versions of Windows, from Windows NT, are not based on DOS but provide a command-line interface similar to MS-DOS's character-mode interface known as the console. This is provided by a native executable, <code>cmd.exe</code>. Many Windows console applications are incorrectly referred to as DOS applications. However, in reality they are Windows applications, using Windows system calls, using the text console for input and output rather than a graphical interface. Both true MS-DOS programs and Windows console programs can be run from the command line in the same console window. 32-bit Windows can run MS-DOS programs through the use of the [[NTVDM]] (NT Virtual DOS Machine), and the 16-bit <code>command.com</code> interpreter from MS-DOS 5.0{{Fact|date=March 2008}} is still included to maintain application compatibility with programs that expect it (see the output produced by the command "<code>command.com /k ver</code>", which displays "<code>MS-DOS Version 5.00.500</code>" in the console window). The command "<code>ver</code>" returns the string "<code>Microsoft(R) Windows DOS</code>" when executed under <code>command.com</code>, but "<code>Microsoft Windows XP [Version 5.1.2600]</code>" (or similar depending on the version of 32-bit Windows) when run from <code>cmd.exe</code>. Recent versions of Windows for x64 architectures, including [[Windows XP Professional x64 Edition]], [[Windows Server 2003]] x64 and [[Windows Vista]] x64, no longer include the NTVDM and can therefore no longer natively run MS-DOS or 16-bit Windows applications. For MS-DOS and Windows 3.11 or earlier programs, however, there exist alternatives in the form of emulators such as Microsoft's own [[Virtual PC]], [[Bochs]], [[DOSBox]], etc. ==Legacy compatibility== From 1983 onwards, various companies have worked on [[graphical user interface]]s (GUIs) capable of running on PC hardware. With DOS being the dominant operating system several companies released alternate shells, e.g. Microsoft Word for DOS, [[XTree]], and the Norton Shell. However, this required duplication of effort and did not provide much consistency in interface design (even between products from the same company). Later, in 1985, [[Microsoft Windows]] was released as Microsoft's first attempt at providing a consistent user interface (for applications). The early versions of Windows ran on top of MS-DOS and its clones. At first Windows met with little success, but this was also true for most other companies' efforts as well, for example [[Graphical Environment Manager|GEM]]. After version 3.0 (1990), Windows gained market acceptance. Later versions (Windows 95, Windows 98 and Windows Me) used the DOS boot process to launch itself into protected mode. Basic features related to the file system, such as long file names, were only available to DOS when running as a subsystem of Windows. [[Windows NT]] ran independently of DOS but included a DOS subsystem so applications could run in a [[virtual machine]] under the new OS. With the latest Windows releases, even dual-booting MS-DOS is problematic as DOS may not be able to read the basic file system. ==Related systems== ===Single-user=== Several similar products were produced by other companies. In the case of PC-DOS and [[DR-DOS]], it is common but incorrect to call these "clones". Given that Microsoft manufactured PC-DOS for IBM, PC-DOS and MS-DOS were (to continue the genetic analogy) "identical twins" that diverged only in adulthood and eventually became quite different products; DR-DOS was a clone of itself once removed. *[[PC-DOS]] *[[DR-DOS]], *[[Novell DOS]], and *[[OpenDOS]] *[[FreeDOS]], *[[FreeDOS 32]], and *[[GNU/DOS]] *[[PTS-DOS]] *[[DOSBox]], a popular MS-DOS emulator These products are collectively referred to as DOS. However, MS-DOS can be a generic reference to DOS on IBM-PC compatible computers. ===Multiuser=== Several multiuser operating systems capable of running MS-DOS software, and also purpose-written software with multiuser enhancements such as record locking for multiuser databases, have been produced. *[[Concurrent DOS]], derived from [[Concurrent CP/M-86]], later [[Multiuser DOS]] *[[PC-MOS]] ==See also== {{wikibooks|Windows Me boot and Windows 2000 boot}} *[[Comparison of x86 DOS operating systems]] *[[List of Microsoft Windows versions]] *[[List of DOS commands]] *[[Microsoft Windows]] *[[History of Microsoft Windows]] *[[Bad command or file name]] *[[DOSKey]], MS-DOS utility *[[Win32 console]] - a text-rendering system akin to MS-DOS *[[MS-DOS API]] ==Quotes== {{quotation|"IBM wanted [[CP/M]] prompts. It made me throw up." -- [[Tim Paterson]] <ref name="The Roots of DOS">{{cite journal| first=David|last=Hunter| title=The Roots of DOS| date=1983| journal=[[Softalk]] for the IBM Personal Computer| url=http://www.patersontech.com/Dos/Softalk/Softalk.html| accessdate=2007-06-14}}</ref>}} ==References== {{reflist|1}} ==External links== *[http://support.microsoft.com/kb/79747 Current License Agreement Policies for MS-DOS and Windows] *[http://www.patersontech.com/Dos/Articles.aspx Tim Patterson on DOS] - Patterson wrote the QDOS OS *[http://www.linfo.org/ms-dos.html MS-DOS: A Brief Introduction] *[http://www.chebucto.ns.ca/~ak621/DOS/DOS-Head.html Richard Bonner's DOS website] *[http://purl.oclc.org/net/Batfiles/ Batfiles] - the DOS batch file programming handbook and tutorial *[http://home.arachne.cz/ Arachne graphical browser for DOS] *[http://www.nukesoft.co.uk/msdos/ ''MS-DOS Reference''] *[http://members.fortunecity.com/pcmuseum/dos.htm# DOS version timeline] *[http://www.dosemu.org/ Linux/dosemu] *[http://www-2.cs.cmu.edu/afs/cs/user/ralf/pub/WWW/files.html ''Ralf Brown's Interrupt List''] *[http://www.computerhope.com/msdos.htm DOS command overview] *[http://dosbox.sourceforge.net/news.php?show_news=1 DOSBox, a multiplatform DOS emulator] *[http://garbo.uwasa.fi/ Garbo - An MS-DOS programs distribution library] at the University of Vaasa, Finland *[http://www.microsoft.com/technet/archive/msdos/01_intro.mspx?mfr=true MS-DOS 6 Technical Reference at Microsoft TechNet] *[http://www.youtube.com/watch?v=dmEvPZUdAVI Promotional video for MS-DOS 5] {{Microsoft Windows family}} {{Operating System}} [[Category:1981 introductions]] [[Category:Discontinued Microsoft software]] [[Category:DOS on IBM PC compatibles]] [[Category:Microsoft operating systems]] [[Category:Operating system families]] [[Category:FloppyOS]] [[Category:Discontinued software]] [[ar:إم‌إس - دوس]] [[az:MS-DOS]] [[be:MS-DOS]] [[bg:MS-DOS]] [[ca:MS-DOS]] [[cs:MS-DOS]] [[da:MS-DOS]] [[de:MS-DOS]] [[et:MS-DOS]] [[el:MS-DOS]] [[es:MS-DOS]] [[eo:MS-DOS]] [[eu:MS-DOS]] [[fa:ام‌اس-داس]] [[fy:MS-DOS]] [[ga:MS-DOS]] [[gl:MS-DOS]] [[ko:MS-DOS]] [[hr:MS-DOS]] [[id:MS-DOS]] [[it:MS-DOS]] [[kk:MS-DOS]] [[ku:MS-DOS]] [[lv:MS-DOS]] [[lt:MS-DOS]] [[hu:MS-DOS]] [[ms:MS-DOS]] [[nl:MS-DOS]] [[ja:MS-DOS]] [[no:MS-DOS]] [[nds:MS-DOS]] [[pl:MS-DOS]] [[ro:MS-DOS]] [[ru:MS-DOS]] [[simple:MS-DOS]] [[sk:MS-DOS]] [[sr:MS-DOS]] [[fi:MS-DOS]] [[sv:MS-DOS]] [[tl:MS-DOS]] [[vi:MS-DOS]] [[tr:MS-DOS]] [[yi:MS-DOS]] [[zh:MS-DOS]]