Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ doswrite(1) — AIX/RT 2.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

dosdir

dosread

dosdel

doswrite

PURPOSE

     Copies AIX files to DOS files.

SYNOPSIS
     doswrite [ -av ] [ -Ddosdev ] AIXfile DOSfile


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 compo-
     nent must  exist as  a directory  and the  last component
     (the named file), must not exist.

     File-naming conventions are those of DOS, with one excep-
     tion.  doswrite replaces the \ (backslash) character used
     to  separate components  of a  DOS path  name with  the /
     (slash) because the backslash can have special meaning to
     AIX.  doswrite 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.  Wild card 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 had specified a blank extension.

     2.  This command must be named doswrite.

FLAGS

     -a             Replaces  NL (new-line  character) charac-
                    ters  with  the sequence  CR-LF  (carriage
                    return-linefeed).   A Ctrl-Z  is added  to
                    the output at end of file.
     -D filesystem  Specifies the  name of  the DOS  device or
                    file  system.    The  default   device  is
                    /dev/fd0.   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  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 diskette drive.

RELATED INFORMATION

     The  following   commands:   "dosdir,"    "dosread,"  and
     "dosdel."

     The pcdos  subroutine in  AIX Operating  System Technical
     Reference.

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