Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ doswrite(1) — AIX PS/2 1.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

dosdir

dosread

dosdel



DOSWRITE(1,C)               AIX Commands Reference                DOSWRITE(1,C)



-------------------------------------------------------------------------------
doswrite



PURPOSE

Copies AIX files to DOS files.

SYNTAX


            +--------+   +- -D/dev/fdO -+
doswrite ---| +----+ |---|              |-- file1 -- file2 --|
            +-| -a |-+   +- -D device --+
             ^| -v ||
             |+----+|
             +------+


Note:  This command does not have MBCS support.

DESCRIPTION

The doswrite command copies the specified AIX file1 to the specified DOS file2.
If file2 is a multi-component name (that is, if it contains /), each
intervening component must exist as a directory, and the last component (the
named file) must not exist.

File-naming conventions are the same as DOS, with one exception:  the doswrite
command replaces the \ (backslash) character used to separate components of a
DOS path name with the / (slash) character because the backslash can have
special meaning to AIX.  The doswrite command converts lowercase characters in
the file1 name to uppercase before it checks the disk.  Because all file names
are assumed to be full (not relative) path names, you need not add the initial
/ (slash).

Notes:

  1. Pattern-matching characters ("*" and "?") are not treated in a special way
    by this command (although they are by the shell).  If, for example, you do
    not specify a file-name extension, the file name is matched as if you
    specified a blank extension.

  2. This command must be named doswrite.

FLAGS

-a               Replaces NL (new-line character) characters with the sequence
                 CRLF (carriage return-linefeed).  A Ctrl-Z is added to the
                 output at end of file.




Processed November 8, 1990       DOSWRITE(1,C)                                1





DOSWRITE(1,C)               AIX Commands Reference                DOSWRITE(1,C)



-D device        Specifies the name of the DOS device or file system.  The
                 default device is /dev/fd0.  To use a low density diskette,
                 specify /dev/fd01.  This device must have the DOS-disk format.

-v               Writes information to the standard output about the format of
                 the disk.  Use this flag to verify that a device or file
                 system is a DOS disk.

EXAMPLES

  1. To copy a text file from the AIX file system to a DOS diskette:

      doswrite  -a  chap1  chap1.doc

    This command copies the AIX file "chap1" in the current directory to the
    DOS text file "\CHAP1.DOC" on /dev/fd0.

  2. To copy a binary file from the AIX file system to a fixed-disk DOS file
    system:

      doswrite  -D/dev/hd1  /u/fran/testdata  /survey/test.dta

    This copies the AIX data file "/u/fran/testdata" to the DOS file
    "\SURVEY\TEST.DTA" on /dev/hd1.

FILES

/dev/fd0    Device name for the diskette drive.

RELATED INFORMATION

See the following commands:  "dosdir,"  "dosread," and  "dosdel."























Processed November 8, 1990       DOSWRITE(1,C)                                2



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026