C:\WINDOWS>HELP DEL
Deletes one or more files.
DEL
[/P
] [/F
] [/S
] [/Q
] [/A
[[:
]attributes
]] names
ERASE
[/P
] [/F
] [/S
] [/Q
] [/A
[[:
]attributes
]] names
names Specifies a list of one or more files or directories.
Wildcards may be used to delete multiple files. If a
directory is specified, all files within the directory
will be deleted.
/P Prompts for confirmation before deleting each file.
/F Force deleting of read-only files.
/S Delete specified files from all subdirectories.
/Q Quiet mode, do not ask if ok to delete on global wildcard
/A Selects files to delete based on attributes
attributes R Read-only files S System files
H Hidden files A Files ready for archiving
- Prefix meaning not
If Command Extensions are enabled DEL and ERASE change as follows:
The display semantics of the /S switch are reversed in that it shows
you only the files that are deleted, not the ones it could not find.
C:\WINDOWS>HELP DIR
Displays a list of files and subdirectories in a directory.
DIR
[drive:
][path
][filename
] [/A
[[:
]attributes
]] [/B
] [/C
] [/D
] [/L
] [/N
] [/O
[[:
]sortorder
]] [/P
] [/Q
] [/S
] [/T
[[:
]timefield
]] [/W
] [/X
] [/4
] [drive:
][path
][filename
] Specifies drive, directory, and/or files to list.
/A Displays files with specified attributes.
attributes D Directories R Read-only files
H Hidden files A Files ready for archiving
S System files - Prefix meaning not
/B Uses bare format (no heading information or summary).
/C Display the thousand separator in file sizes. This is the
default. Use /-C to disable display of separator.
/D Same as wide but files are list sorted by column.
/L Uses lowercase.
/N New long list format where filenames are on the far right.
/O List by files in sorted order.
sortorder N By name (alphabetic) S By size (smallest first)
E By extension (alphabetic) D By date/time (oldest first)
G Group directories first - Prefix to reverse order
/P Pauses after each screenful of information.
/Q Display the owner of the file.
/S Displays files in specified directory and all subdirectories.
/T Controls which time field displayed or used for sorting
timefield C Creation
A Last Access
W Last Written
/W Uses wide list format.
/X This displays the short names generated for non-8dot3 file
names. The format is that of /N with the short name inserted
before the long name. If no short name is present, blanks are
displayed in its place.
/4 Displays four-digit years
Switches may be preset in the DIRCMD environment variable. Override
preset switches by prefixing any switch with - (hyphen)--for example, /-W.
C:\WINDOWS>HELP DISKCOMP
Compares the contents of two floppy disks.
DISKCOMP
[drive1:
[drive2:
]]