Write and Check 1 File to DOS Diskette from Unix



next up previous contents index
Next: Write Entire Directory Up: DOS Transfers under Previous: Read 1 File

Write and Check 1 File to DOS Diskette from Unix

   	Insert DOS floppy.   
$ cd dirname   	Change to desired Unix directory.   
$ doswrite -a unixfile dosfile.tex   	Write to DOS floppy.   
There are 977920 bytes of free space.   	The voice of DOS.   

Note that the DOS floppy needs be formatted before writing to it. This can be done on your PC or with the AIX command dosformat. For more information on this and other DOS commands, check the manual with man dosread. As a further example, now we examine and read the Fortran program ZROOTS.FOR from a floppy:

$dosdir   	List files on floppy.   
VANDER.FOR  ZROOTS.FOR   	The files.   
There are 976896 bytes of free space.   	The voice of DOS.   
$dosdir -l   	Long list of DOS directory.   
VANDER.FOR       769   Mar 26 1992   17:45:25   	One line of many.  

There are 976896 bytes of free space.   	The voice of DOS.   
$dosread  -a  ZROOTS.FOR   	Read ZROOTS.FOR from floppy.   
$ls   	List files in current directory.   
ZROOTS.FOR   	Yes, it's there now.   
$mv ZROOTS.FOR  zroots.f   	Rename for Unix.   



next up previous contents index
Next: Write Entire Directory Up: DOS Transfers under Previous: Read 1 File