Content deleted Content added
Igor123121 (talk | contribs) m Reverted edit by 109.38.233.140 (talk) to last version by 199.192.1.63 |
|||
(37 intermediate revisions by 27 users not shown) | |||
Line 1:
{{Short description|None}}
{{Use dmy dates|date=May 2019|cs1-dates=y}}
This article
Each command is implemented either as [[shell builtin|built-in]] to the [[command-line interpreter|command interpreter]], [[COMMAND.COM]], or as an external [[computer program|program]]. Although prevailing style is to write command names in all caps, the interpreter matches ignoring case.
{{Horizontal TOC|nonum=yes}}
==Commands==
===APPEND===
Line 89 ⟶ 77:
{{Main|choice (command)}}
The CHOICE command is used in batch files to prompt the user to select one item from a set of single-character ''choices''. Choice was introduced as an external command with MS-DOS 6.0;<ref name="RUNNINGMSDOS" /><ref>{{cite web|url=http://www.computerhope.com/choicehl.htm|title=MS-DOS choice command help|access-date=10 September 2014}}</ref> [[Novell DOS]] 7<ref name="drdos7ch7">{{cite web|url=http://www.drdos.com/dosdoc/usergeng/07ugch7.htm|title=Caldera DR-DOS 7.03 User Guide|access-date=10 September 2014|archive-date=2015-09-23 |archive-url=https://web.archive.org/web/20150923220343/http://www.drdos.com/dosdoc/usergeng/07ugch7.htm|url-status=usurped}}</ref> and PC DOS 7.0. Earlier versions of [[DR-DOS]] supported this function with the built-in ''switch'' command (for numeric choices) or by beginning a command with a question mark.<ref name="drdos7ch7" /> This command was formerly called ync (yes-no-cancel).
===CLS===
Line 162 ⟶ 150:
Deletes a directory along with all of the files and subdirectories that it contains. Normally, it will ask for confirmation of the potentially dangerous action. Since the RD (RMDIR) command can not delete a directory if the directory is not empty (except in Windows NT & 10), the DELTREE command can be used to delete the whole directory.
The <code>deltree</code> command is included in certain versions of [[Microsoft Windows]] and [[MS-DOS]] [[operating system]]s. It is specifically available only in versions of [[MS-DOS]] 6.0 and higher,<ref name="RUNNINGMSDOS" /> and in [[Windows 9x|Microsoft Windows 9x]]. In Windows NT, the functionality provided exists but is handled by the command {{mono|rd}} or {{mono|rmdir}} which has slightly different syntax
===DIR===
Line 212 ⟶ 200:
{{Main|MS-DOS Editor}}
EDIT is a full-screen [[text editor]], included with MS-DOS versions 5 and 6,<ref name="RUNNINGMSDOS" /> OS/2 and Windows NT to 4.0. The corresponding program in Windows 95 and later, and Windows 2000 and later is Edit v2.0. PC DOS 6 and later use the [[E (PC DOS)|DOS ''E'' Editor]] and DR-DOS used ''editor'' up to version 7.
===EDLIN===
Line 352 ⟶ 340:
===INTERSVR and INTERLNK===
{{Main|Interlnk}}
In MS-DOS; <kbd>filelink</kbd> in DR-DOS.
Line 376 ⟶ 365:
The command is available in MS-DOS versions 3.1 and later and IBM PC DOS releases 3 and later.<ref name="RUNNINGMSDOS" />
=== LASTDRIVE ===
Used in the CONFIG.SYS file to set the maximum number of drives that can be accessed.
The command is available in MS-DOS versions 3.0 and later.<ref>{{Cite web |title=DOS Command: LASTDRIVE |url=https://easydos.com/lastdrive.html |access-date=2025-04-05 |website=easydos.com}}</ref>
===LINK4===
Line 459 ⟶ 453:
|date=January 4, 1994}}</ref> There is another offering, named MWBACKUP, that is [[Graphical user interface|GUI]]-oriented. It was introduced for Windows for Workgroups (3.11).<ref>Source: Zeos International: {{cite web
|url=http://windowsbulletin.com/files/exe/zeos-international-ltd/windows-for-workgroups-3-11-ms-dos-6-22-backup-installation-disc/mwbackup-exe
|title=What is MWBACKUP.EXE?|date=25 February 2019 }}</ref>
The MSBACKUP command is available in MS-DOS versions 6 and later.<ref name="RUNNINGMSDOS" />
Line 473 ⟶ 467:
{{Main|Microsoft Diagnostics}}
The MSD command provides detailed technical information about the computer's hardware and software. MSD was new in MS-DOS 6;<ref name="RUNNINGMSDOS" /><ref>{{cite web|url=http://www.computerhope.com/msdhlp.htm|title=MS-DOS msd command help|access-date=10 September 2014}}</ref> the PC DOS version of this command is QCONFIG.<ref name="pcdosretro-commands">{{
=== MSHERC ===
Line 524 ⟶ 518:
{{See also|Prompt (computing)}}
The {{mono|PROMPT}} command allows the user to change the prompt in the command screen. The default prompt is {{mono|$p$g}} (i.e. {{kbd|PROMPT $p$g}}), which displays the drive,
The command is available in MS-DOS versions 2 and later and IBM PC DOS releases 2.1 and later.<ref name="RUNNINGMSDOS" />
Line 562 ⟶ 556:
{{Main|ren (command)}}
The REN command renames a file. Unlike the <code>move</code> command, this command cannot be used to rename subdirectories, or rename files across drives. Mass renames can be accomplished by the use of the wildcards characters asterisk (*) and question mark (?).<ref>{{cite web |url=https://technet.microsoft.com/en-us/library/bb490987.aspx |title=Microsoft TechNet Rename (ren) article|date=11 September 2009 }}</ref>
The command is available in MS-DOS versions 1 and later.<ref name="RUNNINGMSDOS" />
Line 655 ⟶ 649:
=== SORT ===
A [[Filter (software)|filter]] to sort lines in the input data stream and send them to the output data stream. Similar to the Unix command <code>[[Sort (Unix)|sort]]</code>. Handles files up to 64k. This sort is always case insensitive.<ref>{{cite web|url=https://technet.microsoft.com/en-us/library/cc722869.aspx|title=Microsoft on "sort"|date=20 February 2014 |access-date=10 September 2014}}</ref>
The command is available in MS-DOS versions 2 and later.<ref name="RUNNINGMSDOS" />
Line 723 ⟶ 717:
{{See also|format (command)}}
MS-DOS version 5 introduced the quick format option (<code>Format /Q</code>) which removes the disk's file table without deleting any of the data. The same version also introduced the UNFORMAT command to undo the effects of a quick format, restoring the file table and making all the files accessible again.
UNFORMAT only works if invoked before any further changes have overwritten the drive's contents.<ref name="RUNNINGMSDOS" /> === VER ===
Line 733 ⟶ 729:
=== VERIFY ===
Enables or disables the feature to determine if files have been correctly written to disk (You can enable the verify command by typing "verify on" on Command Prompt and pressing enter. To display the current VERIFY setting, type VERIFY without a parameter. To turn off the feature, type "verify off"). If no parameter is provided, the command will display the current setting.<ref>{{cite web|url=http://www.csulb.edu/~murdock/verify.html|title=DOS Command: VERIFY|access-date=10 September 2014}}</ref>
The command is available in MS-DOS versions 2 and later.<ref name="RUNNINGMSDOS" />
Line 762 ⟶ 758:
== See also ==
* [[:Category:Windows commands]]
* [[List of CONFIG.SYS directives]]
* [[Timeline of DOS operating systems]]
Line 777 ⟶ 772:
*[https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/windows-commands Command-Line Reference] : Microsoft TechNet Database "Command-Line Reference"
*[https://technet.microsoft.com/en-us/library/cc749839.aspx The MS-DOS 6 Technical Reference on TechNet] contains the official Microsoft MS-DOS 6 command reference documentation.
*
*[http://www.mdgx.com/secrets.htm MDGx MS-DOS Undocumented + Hidden Secrets]
*[https://github.com/microsoft/MS-DOS MS-DOS v1.25 and v2.0 source code]
There are several guides to DOS commands available that are licensed under the [[GNU Free Documentation License]]:
*[https://web.archive.org/web/20130612114615/http://fd-doc.sourceforge.net/wiki/index.php The FreeDOS Spec] at SourceForge is a [[plaintext]] specification, written in 1999, for how DOS commands should work in FreeDOS
*[http://www.computerhope.com/msdos.htm MS-DOS commands]
|