Various Devpac80 Utilities

WP

WP.COM copies files from one disc to another. It is invoked by typlng its name
followed by its parameters at the CP/M prompt. The general form of the
command line is

wp <source afn> <destination afn> [-q]

The items specified as <source afn> and <destination afn> above are
standard CP/M ambiguous file specifications, with optionally a drive name
at the front. An ambiguous file specification is a filename which can match
more than one file; this is done using wildcards, which are described in great
detail in your CP/M documentation. WP extends the deflnition slightly in line
with CP/M's built-in DIR command, such that a drive name alone (such as
B:) is equivalent to *.* on the specified drive. If this item is left out
altogether, it is taken as *.* on the current (default) drive.

The item specified by [-q] is an optional item and will be described later.

Typical WP invocations, then, would be

wp a: m:    [RETURN]

which copies all files on drive A onto drive M,

wp m:    [RETURN]

which copies all files on the default drive to drive M and

wp b:*.com a:*.bak    [RETURN]

which copies all files on drive B with an extension of .COM to drive A with an
extension of .BAK. If the source and destination files are the same, then WP
prints an error message and returns to CP/M.

When a valid command line has been typed, WP collects the names of the
matchlng files and displays each one In turn, followed by a prompt:

Copy (Y/N/A/Q/P) ?

You may type Y to copy this file, N not to copy this file, P to go back to the
previous selection, A to copy this and all subsequent matching flies or Q to
quit without copying this or subsequent flies.

If -Q is present as the last item on the command line. WP does not prompt
and copies each matching file without asking.

WD

WD.COM deletes files from a disc. It is invoked by typing its name followed by
its parameters at the CP/M prompt. The general form of the command line
is

wd <afn>

The item specified as <afn> above is a standard CP/M ambiguous file
specification, with optionally a drive name at the front. An ambiguous file
specification is a filename which can match more than one file; this is done
using wildcards, which are described in great detail in your CP/M documentation.
WD extends the definition slightly in line with CP/M's built-
in DIR command, such that a drive name alone (such as B:) is equivalent to
*.* on the specified drive. If this item is left out altogether, it is taken as *.*
on the current (default) drive.

Typical WD invocations, then, would be

wd a:    [RETURN]
which deletes all flies on drive A and

wd b:*.com    [RETURN]

which deletes all files on drive B with an extension of .COM.

When a valid command line has been typed, WD collects the names of the
matching flies and displays each one in turn, followed by a prompt:

Delete (Y/N/A/Q)?

You may type Y to delete this file, N not to delete this file, A to delete this and
all subsequent matching files or Q to quit now without deleting this or
subsequent flies.

SD

SD.COM is a utility to display a detailed directory listing and the disc free
space. It takes exactly the same parameter types as CP/M's built-in DIR
command: an ambiguous file specification, a drive name or no parameter at
all. The files matching the given specification are listed on the screen along
with their vital statistics. These include the length In CP/M records (128-
byte units) and the size of the file rounded up to the nearest 1K boundary. If
a file it set to Read-Only, an R is printed by its name; if a file is set to System,
an S appears. Both can appear together for the same file.

The final part of the display is the number of bytes free on the disc, in 1K
units.

