home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.update.uu.se
/
ftp.update.uu.se.2014.03.zip
/
ftp.update.uu.se
/
pub
/
rainbow
/
cpm
/
misc2
/
dosflx41.doc
< prev
next >
Wrap
Text File
|
1994-09-07
|
16KB
|
621 lines
DATE: 18 Jan 84 17:07:21
Revision 2.0 of
Functional Specification for the
Rainbow MS-DOS File Exchange Utility (DOSFLX)
Issued By: Rich Muratori
Revision History:
Rev 1.0 12-Dec-83 by Rich Muratori Preliminary release
Rev 2.0 18 Jan 84 by Rich Muratori Added TYPE command
MS-DOS File Exchange Utility (DOSFLX) Page ii
Table of Contents 18 Jan 84
Table of Contents
Page
----
1.0 Product Overview . . . . . . . . . . . . . . . . . . 1
2.0 Product Goals . . . . . . . . . . . . . . . . . . . 1
2.1 Performance . . . . . . . . . . . . . . . . . . . 1
2.2 Environments . . . . . . . . . . . . . . . . . . . 1
3.0 Functional Specification . . . . . . . . . . . . . . 2
3.1 User Interface . . . . . . . . . . . . . . . . . . 2
3.2 Miscellaneous Features . . . . . . . . . . . . . . 3
3.3 READ Command . . . . . . . . . . . . . . . . . . . 3
3.4 Write Command . . . . . . . . . . . . . . . . . . 4
3.5 READ and WRITE Features . . . . . . . . . . . . . 5
3.6 DIR Command . . . . . . . . . . . . . . . . . . . 6
3.7 DIR/W Command . . . . . . . . . . . . . . . . . . 7
3.8 DEL command . . . . . . . . . . . . . . . . . . . 7
3.9 TYPE command . . . . . . . . . . . . . . . . . . . 7
3.10 EXIT Command . . . . . . . . . . . . . . . . . . . 8
3.11 HELP Command . . . . . . . . . . . . . . . . . . . 8
3.12 ? Command . . . . . . . . . . . . . . . . . . . . 8
MS-DOS File Exchange Utility (DOSFLX) Page 1
Product Overview 18 Jan 84
1.0 Product Overview
The DOSFLX (MS-DOS File Exchange) Utility Program provides the
capability to access MS-DOS files while running the CP/M operating
system. Specifically, it provides the capability to:
1. Take a directory of an MS-DOS disk.
2. Delete a file on an MS-DOS disk.
3. Copy a file from an MS-DOS disk to a CP/M disk.
4. Copy a file from a CP/M disk to an MS-DOS disk.
An 'MS-DOS disk' can be any one of the following:
1. A Rainbow MS-DOS diskette
2. An IBM 8 sectors-per-track PC-DOS diskette
3. An IBM 9 sectors-per-track PC-DOS diskette
4. A Rainbow internal hard disk MS-DOS partition
2.0 Product Goals
2.1 Performance
1. Easy to learn - to eliminate the need for the user to read a
manual. Detailed help information is available at all times
to explain the command options available.
2. Easy to use. The program will enable the sophisticated user
to perform the desired functions with a minimum number of
keystrokes.
2.2 Environments
DOSFLX runs under both CP/M-86/80 Version 2.0 and Concurrent CP/M-86
(CCP/M-86).
MS-DOS File Exchange Utility (DOSFLX) Page 2
Functional Specification 18 Jan 84
3.0 Functional Specification
3.1 User Interface
DOSFLX is a command-driven program. The command keywords and their
functions are:
1. DIR - gives a verbose directory listing of specified MS-DOS
files.
2. DIR/W - gives a terse directory listing of specified MS-DOS
files.
3. READ - copies specified MS-DOS files to specified CP/M files.
4. WRITE - copies specified CP/M files to specified MS-DOS
files.
5. DEL - deletes specified MS-DOS files.
6. HELP - gives general help and specific help on each command.
7. ? - gives a brief list of valid commands.
8. EXIT - stops the program and returns to the operating system.
The user may enter a command and its arguments in several ways:
1. Enter the program name, the command, and command arguments on
the CP/M command line. For example,
A>DOSFLX DIR A:
2. Enter only the program name on the CP/M command line. This
places you into DOSFLX command mode. Enter the command and
its arguments on the DOSFLX command line. For example,
A>DOSFLX
DOSFLX>DIR A:
3. Enter only the program name on the CP/M command line. Enter
only the command on the DOSFLX command line. DOSFLX will
prompt you for the command arguments. For example,
A>DOSFLX
DOSFLX>DIR
MS-DOS directory:
For mode 1, after the specified command is executed, DOSFLX returns to
the operating system. For modes 2 and 3, DOSFLX returns to its own
command level after command execution.
MS-DOS File Exchange Utility (DOSFLX) Page 3
Functional Specification 18 Jan 84
3.2 Miscellaneous Features
MS-DOS conventions and functionality are implemented wherever
possible. This means that directory typeouts are identical to those
given by MS-DOS. Interpretation of directory and file specifications
is identical to MS-DOS.
Drive names A-D are interpreted to be floppy disk drives. Drive names
E-L are interpreted to be hard disk partitions. All other drive names
are invalid.
Both upper and lower case input is accepted.
In order to implement Control-C aborting during the read and write
operations, typeahead had to be disallowed. The input buffer is
flushed before the DOSFLX command mode is entered.
3.3 READ Command
The READ command copies specified files from an MS-DOS formatted disk
to specified files on a CP/M formatted disk. The command line format
is:
READ source-spec destination-spec
The source-spec specifies the MS-DOS file(s) to be copied. Its format
is:
sdrv:[path]sfilnam.typ
where 'sdrv' is the MS-DOS drive,
'path' is an optional MS-DOS directory specification,
'sfilnam.typ' is the MS-DOS file specification.
The user must specify a source drive and file specification. A path
is optional depending on the location of the file(s) to be read.
The destination-spec specifies the CP/M file(s) into which the MS-DOS
file(s) are to be copied. Its format is:
[ddrv:][dfilnam.typ]
where 'ddrv:' is an optional CP/M drive,
'dfilnam.typ' is an optional CP/M file specification,
Both the destination drive and file specification are optional. The
destination drive defaults to the currently logged in drive. The
destination file specification defaults to the source file
specification. If the user types READ A:FOO.BAR followed by a return,
the program does not prompt for a destination specification. It
assumes the default specification. The default is also assumed if the
user types only a return in response to the prompt for a destination
MS-DOS File Exchange Utility (DOSFLX) Page 4
Functional Specification 18 Jan 84
specification.
If the MS-DOS source file is marked hidden or system, it will not be
read. A file-not-found message will be displayed. However, no
message is displayed if a hidden or system file is among a group of
files being read as part of a wildcarded source specification.
3.4 Write Command
The WRITE command copies specified files from a CP/M formatted disk to
specified files on an MS-DOS formatted disk. The command line format
is:
WRITE sourcespec destination-spec
The source-spec specifies the CP/M file(s) to be copied. Its format
is:
sdrv:]sfilnam.typ
where 'sdrv:' is an optional CP/M drive,
'sfilnam.typ' is a CP/M file specification,
If no CP/M source drive is specified, it defaults to the current
logged-in drive.
The destination-spec specifies the MS-DOS file(s) into which the CP/M
source file(s) are to be copied. Its format is:
ddrv:[path][dfilnam.typ]
where 'ddrv' is the MS-DOS drive,
'path' is an optional MS-DOS directory specification,
'dfilnam.typ' is an optional MS-DOS file specification.
The destination drive is required, but the path and file
specifications are optional. The file specification defaults to the
CP/M source file specification.
If the destination file specification points to a file whicl is
read-only, hidden, or system, that file is not copied. Instead a
message is displayed to notify the user of the situation.
After copying the file, DOSFLX sets the MS-DOS file's Archive bit and
clears all other attributes.
If the CP/M system time is not set or contains a date prior to
1-Jan-83, the time and date in the MS-DOS file are set to 12:00 am on
1-Nov-83. Otherwise, the CP/M system time is used.
MS-DOS File Exchange Utility (DOSFLX) Page 5
Functional Specification 18 Jan 84
If the MS-DOS file already exists, a pre-delete of that file is done.
This is the same as is done by the COPY command.
3.5 READ and WRITE Features
The READ and WRITE commands share the following features:
1. As the files are copied, the source and destination file
specifications are displayed. When all files are copied, a
summary of the number of files copied is displayed.
2. The read or write operation can aborted by typing Control-C
twice (once under Concurrent CP/M). The operation will be
aborted between files being copied.
3. Wildcards are allowed in both the source and destination file
specifications. However, they must appear in the same
character position in both. For example,
READ A:F?O*.* C:B?R*.*
is valid, but
READ A:FO*.* C:BAR*.*
is invalid. The exception to this rule is the case where the
destination file name or extension is all wildcards. For
example,
WRITE A:FO*.C B:*.C
is valid. Wildcards are not allowed in MS-DOS directory
specifications. For example,
READ A:sUB1*fOO.TXT E:MEMO.MEM
is invalid.
4. MS-DOS file specifications which contain a file name but no
file extension (such as FOO. and FOO) are defaulted to an
all blank extension. This is the convention used by MS-DOS
in the COPY command.
5. A 16KBytes buffer is used to transfer the data.
MS-DOS File Exchange Utility (DOSFLX) Page 6
Functional Specification 18 Jan 84
3.6 DIR Command
The DIR command gives a verbose directory listing of specified MS-DOS
files. For each file, the file name, extension, size in bytes, and
time and date of creation or last modification are displayed. The
files are listed one per line. The command line format is:
DIR drv:[path][filnam.typ]
where 'drv' is the MS-DOS drive
'path' is an optional MS-DOS directory specification
'filnam.typ' is an optional MS-DOS file specification
Wildcards (* and ?) are allowed in the file specification but not in
the directory specification. If no file specification is given, all
files in the specified directory are listed.
The path/file specification is interpreted as follows:
1. For a file specification with a null file name, DOSFLX uses
an all wildcard file name. For example, DIR A:.EXT becomes
DIR A:*.EXT.
2. For a file specification with a '.' but no extension, such as
FOO., DOSFLX will
1. give a listing of the file FOO. if such a file exists,
or
2. give a listing of files in subdirectory FOO if it exists,
or
3. if no file or subdirectory named FOO exists, will give
file-not-found.
3. For a file specification with no '.' and extension, such as
FOO, DOSFLX will
1. give a listing of files in subdirectory FOO if it exists,
or
2. if no subdirectory named FOO exists, give a listing of
files FOO.*.
Hidden and system files are not listed. A summary of the number of
files listed and the number of free bytes remaining on the disk is
displayed.
MS-DOS File Exchange Utility (DOSFLX) Page 7
Functional Specification 18 Jan 84
3.7 DIR/W Command
The DIR/W command gives a terse directory listing of specified MS-DOS
files. The functionality is identical to that of the DIR command
except for the display. For each file, only the file name and
extension are displayed. The files are listed five per line.
3.8 DEL command
The DEL command deletes specified files on an MS-DOS formatted disk.
The command line format is:
DEL drv:[path]filnam.typ
where 'drv' is the MS-DOS drive,
'path' is an optional MS-DOS directory specification,
'filnam.typ' is the MS-DOS file specification.
Wildcards (* and ?) are allowed in the file specification but not in
the directory specification. No implied wildcarding is done. That
is, deleting a file 'FOO' or 'FOO.' will delete the file FOO with a
blank extension. Also, a null file name is invalid, such as '.EXT'.
Hidden, system, and read-only files cannot be deleted.
DOSFLX displays the file specification of each deleted file followed
by a summary of the number of files deleted.
3.9 TYPE command
The TYPE command types a specified file from an MS-DOS formatted disk.
The command line format is:
DEL drv:[path]filnam.typ
where 'drv' is the MS-DOS drive,
'path' is an optional MS-DOS directory specification,
'filnam.typ' is the MS-DOS file specification.
Wildcards (* and ?) are NOT allowed in the file specification or in
the directory specification. Only one file at a time may be typed.
Hidden and system files cannot be typed.
The typeout can be aborted by pressing Ctrl-C twice.
MS-DOS File Exchange Utility (DOSFLX) Page 8
Functional Specification 18 Jan 84
3.10 EXIT Command
The EXIT command stops the program and returns to the operating
system.
3.11 HELP Command
The HELP command allows the user to
1. Get general help about DOSLFX by typing HELP only, or
2. Get specific help about a command by typing HELP followed by
the command keyword.
3.12 ? Command
The ? command allows the user to get a list of the command keywords.
$