DOS Commands IV (Alphabet D)

Tech Tip: Create Bootable USB Pen Drive for Windows 7

DATE (External – DOS 1.0;Internal – DOS 1.1 and above)

Displays or sets the date.

 DATE [date]

Type DATE without parameters to display the current date setting and
a prompt for a new one.  Press ENTER to keep the same date.

DEBUG (External – DOS 1.0 and above)

Runs Debug, a program testing and editing tool.

 DEBUG [[drive:][path]filename [testfile-parameters]]

  [drive:][path]filename  Specifies the file you want to test.
  testfile-parameters     Specifies command-line information required by
                          the file you want to test.

After Debug starts, type ? to display a list of debugging commands.

DEBUG originated as an external command in 86-DOS.

DEFRAG (External – DOS 6.0 and above)

To know more on Defragmentation

Reorganizes files on disks to optimize performance.

DEFRAG [drive:] [/F] [/Sorder] [/B] [/SKIPHIGH] [/LCD | /BW | /G0]
DEFRAG [drive:] [/U] [/B] [/SKIPHIGH] [/LCD | /BW | /G0]

  [drive:]   Drive letter of disk to be optimized.
  /F         Fully optimizes specified disk.
  /U         Unfragments files, leaving space between files.
  /S         Sort files by specified order.
  order      N  By Name (alphabetic)            E  By extension (alphabetic)
             D  By date & time (earliest first) S  By size (smallest first)
             -  Suffix to reverse order
  /B         Restarts your computer after optimization.
  /SKIPHIGH  Prevents Defrag from using extended or upper memory.
  /LCD       Runs Defrag using an LCD color scheme.
  /BW        Runs Defrag using a black and white color scheme.
  /G0        Disable the graphic mouse and graphic character set.

DEFRAG is a licensed version Norton Utilities Speed Disk.

DEL or ERASE (Internal – DOS 1.0 and above)

Deletes one or more files.

DEL [drive:][path]filename [/P]
ERASE [drive:][path]filename [/P]

  [drive:][path]filename  Specifies the file(s) to delete.  Specify multiple
                          files by using wildcards.
  /P                      Prompts for confirmation before deleting each file.
  /Q                      Quiet mode, do not ask if ok to delete on global wildcard

/P is only available in DOS 5 and above.

ERASE (but not its alias DEL) originated as an internal command in 86-DOS. All versions of DR-DOS support the ERA command as an alias to ERASE / DEL and add ERAQ / DELQ shortcuts identical to the DR-DOS ERA / ERASE / DEL command with the /Q (Query) option given to prompt the user for confirmation.

DELTREE (External – DOS 6.0 and above)

Deletes a directory and all the subdirectories and files within it.

To Delete one or more directories:

DELTREE [/Y] [drive:]path [[drive:]path[...]]
  /Y              Suppresses prompting to confirm whether you want to
                  delete the subdirectory.
  [drive:]path    Specifies the name of the directory you want to delete.

Note: Use DELTREE with caution. Every file and subdirectory within the
specified directory will be deleted.

DIR(Internal – DOS 1.0 and above)

Displays a list of files and subdirectories in a directory.

 DIR [drive:][path][filename] [/P] [/W] [/A[[:]attribs]] [/O[[:]sortord]]

    [/S] [/B] [/L]

  [drive:][path][filename]   Specifies drive, directory, and files to list.
  /P      Pauses after each full screen of information.
  /W      Uses wide list format.
  /A      Displays files with specified attributes.
  attribs   D  Directories   R  Read-only files         H  Hidden files
            S  System files  A  Files ready to archive  -  Prefix meaning "not"
  /O      Lists by files in sorted order.
  sortord   N  By name (alphabetic)       S  By size (smallest first)
            E  By extension (alphabetic)  D  By date & time (earliest first)
            G  Group directories first    -  Prefix to reverse order
  /S      Displays files in specified directory and all subdirectories.
  /B      Uses bare format (no heading information or summary).
  /L      Uses lowercase.

Switches may be preset in the DIRCMD environment variable.  Override
preset switches by prefixing any switch with - (hyphen)--for example, /-W.
To remove the commas from the DIR output, use the NO_SEP environment variable.

Only /P and /W are available prior to DOS 5.

DIR originated as an internal command in 86-DOS.

DISKCOMP (External – DOS 1.0 and above)

Compares the contents of two floppy disks.

 DISKCOMP [drive1: [drive2:]] [/1] [/8]

  /1   Compares the first side of the disks.
  /8   Compares only the first eight sectors of each track.

DISKCOPY (External – DOS 1.0 and above)

Copies the contents of one floppy disk to another.

 DISKCOPY [drive1: [drive2:]] [/1] [/V] [/M]

  /1   Copies only the first side of the disk.
  /V   Verifies that the information is copied correctly.
  /M   Force multi-pass copy using memory only.

The two floppy disks must be the same type.
You may specify the same drive for drive1 and drive2.

DOSKEY (External – DOS 5.0 and above)

Edits command lines, recalls DOS commands, and creates macros.

 DOSKEY [/REINSTALL] [/BUFSIZE=size] [/MACROS] [/HISTORY]

  [/INSERT | /OVERSTRIKE] [macroname=[text]]

  /REINSTALL    Installs a new copy of Doskey.
  /BUFSIZE=size Sets size of command history buffer.
  /MACROS       Displays all Doskey macros.
  /HISTORY      Displays all commands stored in memory.
  /INSERT       Specifies that new text you type is inserted in old text.
  /OVERSTRIKE   Specifies that new text overwrites old text.
  macroname     Specifies a name for a macro you create.
  text          Specifies commands you want to record.

UP and DOWN ARROWS recall commands; ESC clears command line; F7 displays
command history; ALT+F7 clears command history; F8 searches command
history; F9 selects a command by number; ALT+F10 clears macro definitions.
The following are some special codes in Doskey macro definitions:
$T     Command separator.  Allows multiple commands in a macro.
$1-$9  Batch parameters.  Equivalent to %1-%9 in batch programs.
$*     Symbol replaced by everything following macro name on command line.

DRVLOCK (‘External – PC DOS 5.02 and above)

Locks the drive or socket so that media cannot be removed.

 DRVLOCK [drive: | socket:] [/ON | /OFF]

        /ON     Sets the lock on.
        /OFF    Sets the lock off.

DRVLOCK is only included with PC DOS versions.

DYNALOAD (External – PC DOS 7)

Load a device driver after system startup.

 DYNALOAD filename [parameters]

  filename    Specifies the name of the device driver to load.
  parameters  Specifies any parameters for the device driver.

SOURCE: Wikipedia

If you find this site useful, please support us. Like our FaceBook Page. You can also contact us by mail: portaltechinfo@gmail.com

Tagged: , , , , , , ,

One thought on “DOS Commands IV (Alphabet D)

  1. […] DOS Commands IV (Alphabet D) (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: