List Of Dos Commands Article Index for
List Of
Website Links For
List
 

Information About

List Of Dos Commands




In DOS version 5 or later, to get help on a dos command, at the dos prompt, type /? after the command name. For example, to get help for the '''xcopy''' command, type the following at the dos prompt:


xcopy /?


The operating system will not execute the command but instead display a help page on the command, in this case xcopy. To view this help page, see the xcopy Entry On This Page .

  • and ?), it is said to accept a ''filespec'' parameter. Commands that can accept only a single filename are said to accept a ''filename'' parameter.


For most of the commands, the Unix equivalent is given. It should be noted that Unix commands typically provide ranges of functionality and flexibility that are not approached by the equivalent DOS command, so all comparisons are approximate. For example, the DOS commands copy and xcopy are said to be equivalent to the Unix cp command, but in reality cp has much greater power than copy, and a similar functionality to xcopy.

Also most of those commands are shared with other DOS'es like DR-DOS , Enhanced DR-DOS and FreeDOS , but there are some of them having syntax differences as well as several completely different commands.

More than 100 other commands are available in different releases of DOS, all of which are described in the last reference; the most useful not described here are call, ''' Debug ''', ''' Doskey ''', ''' Edit ''', '''mode''', '''pause''', and ''' Subst '''.


COMMANDS


Attrib

:Change or view the attributes of one or more files. It defaults to displaying the attributes of all files in the current directory.
Options:
  • To add an attribute attach a '+' in front of it.

  • To remove an attribute attach a '-' in front of it

  • Attributes include

  • ---R - Read-only

  • ---A - Archive

  • ---S - System

  • ---H - Hidden


  FORMAT Drive: "/V[:label]]" class="copylinks" target="_blank">[/Q [/B /S [/C]
  FORMAT Drive: "/V[:label]]" class="copylinks" target="_blank">[/Q /N:sectors /S [/C]
  FORMAT Drive: "/V[:label]]" class="copylinks" target="_blank">[/Q [/4 /S [/C]
  FORMAT Drive: "/Q]" class="copylinks" target="_blank">[/1 [/8 /S [/C]
  Undelete "''filespec'']" class="copylinks" target="_blank">[''/list''''/all'' [''/dos''''/dt'']