DOS Commands III (Alphabet C)

CALL

Internal – DOS 3.3 and above

Calls one batch program from another.

CALL [drive:][path]filename [batch-parameters]

  batch-parameters   Specifies any command-line information required by the
                     batch program.

CHCP

Internal – DOS 3.3 and above

Displays or sets the active code page number.

CHCP [nnn]

  nnn   Specifies a code page number.

Type CHCP without a parameter to display the active code page number.

CHDIR or CD

Internal – DOS 2.0 and above

Displays the name of or changes the current directory.

CHDIR [drive:][path]
CHDIR[..]
CD [drive:][path]
CD[..]

  ..   Specifies that you want to change to the parent directory.

Type CD drive: to display the current directory in the specified drive.
Type CD without parameters to display the current drive and directory.

CHKDSK

External – DOS 1.0 and above

Checks a disk and displays a status report.

CHKDSK [drive:][[path]filename] [/F] [/V]

  [drive:][path]  Specifies the drive and directory to check.
  filename        Specifies the file(s) to check for fragmentation.
  /F              Fixes errors on the disk.
  /V              Displays the full path and name of every file on the disk.

Type CHKDSK without parameters to check the current disk.

CHKDSK originated as an external command in 86-DOS.

CHOICE

External – DOS 6.0 and above

Waits for you to choose one of a set of choices.

CHOICE [/C[:]choices] [/N] [/S] [/T[:]c,nn] [text]

/C[:]choices Specifies allowable keys. Default is YN.
/N           Does not display choices and ? at end of prompt string.
/S           Treats choice keys as case sensitive.
/T[:]c,nn    Defaults choice to c after <nn> seconds.
text         Prompts string to display.

ERRORLEVEL is set to offset of key you press in choices.

CLS

Internal – DOS 2.0 and above

Clears the screen.

CLS

COMMAND

External – DOS 1.0 and above

Starts a new copy of the DOS Command Interpreter.

COMMAND [[drive:]path] [device] [/E:nnnnn] [/P [/MSG]]
        [/H] [/O] [/Y [/C command | /K command]]

  [drive:]path    Specifies the directory containing COMMAND.COM file.
  device          Specifies the device to use for command input and output.
  /E:nnnnn        Sets the initial environment size to nnnnn bytes.
  /P              Makes the new Command Interpreter permanent (can't exit).
  /MSG            Stores all error messages in memory (requires /P).
  /H              Loads the Command Interpreter into a UMB if available.
  /O              Disables overwrite prompt on COPY,XCOPY,and MOVE commands.
  /Y              Steps through the batch program specified by /C or /K.
  /C command      Executes the specified command and returns.
  /K command      Executes the specified command and continues running.

The /P and /MSG switches may be used only when COMMAND is started by using
the SHELL command in the CONFIG.SYS file.

/O and /Y are only available in DOS 6 and above. /H is only available in PC DOS 7.

COMMAND.COM originated in 86-DOS.

COMP

External – DOS 1.0 and above

Compares the contents of two files or sets of files.

COMP [data1] [data2] [/D] [/A] [/L] [/N=number] [/C]

  data1     Specifies location and name(s) of first file(s) to compare.
  data2     Specifies location and name(s) of second files to compare.
  /D        Displays differences in decimal format. This is the default
            setting.
  /A        Displays differences in ASCII characters.
  /L        Displays line numbers for differences.
  /N=number Compares only the first specified number of lines in each file.
  /C        Disregards case of ASCII letters when comparing files.

To compare sets of files, use wildcards in data1 and data2 parameters.

COPY

Internal – DOS 1.0 and above

Copies one or more files to another location.

COPY [/A | /B] source [/A | /B] [+ source [/A | /B] [+ ...]] [destination
  [/A | /B]] [/V] [/Y | /-Y]

  source       Specifies the file or files to be copied.
  /A           Indicates an ASCII text file.
  /B           Indicates a binary file.
  destination  Specifies the directory and/or filename for the new file(s).
  /V           Verifies that new files are written correctly.
  /Y           Suppresses prompting to confirm you want to overwrite an
               existing destination file.
  /-Y          Causes prompting to confirm you want to overwrite an
               existing destination file.

The switch /Y may be preset in the COPYCMD environment variable.
To append files, specify a single file for destination, but multiple files
for source (using wildcards or file1+file2+file3 format).

/Y and /-Y are only available in DOS 6 and above.

COPY originated as an internal command in 86-DOS.

CTTY

Internal – DOS 2.0 and above

Changes the terminal device used to control your system.

CTTY device

  device   The terminal device you want to use, such as COM1.

Tagged: , , , ,

One thought on “DOS Commands III (Alphabet C)

  1. […] DOS Commands III (Alphabet C) (tiportal.wordpress.com) […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

<span>%d</span> bloggers like this: