To copy an entire directory from Unix to DOS, place the
following few lines in a file (we call ours dos.dir). This file is a
shell script that takes the output file names from the list command
ls and uses them as file names for the doswrite
dosfiles=`ls` List files, set to variable dosfiles. for i in $dosfiles Go through list of names. do Repeat loop. doswrite -a $i $i Write 1 file onto floppy. done
To run this script, make the file executable (x) with the command
chmod x dos.dir, and then issue the dos.dir command.
If you want the file to go into an already existing DOS directory
named pcfiles, change the doswrite line above to:
%doswrite -a $i /pcfiles/$i Write to DOS directory.