copying files to a dos diskette

copying files to a dos diskette

Post by Jeff » Thu, 11 Jan 2001 22:32:36



I'm trying to copy a directory full of small text files to a dos diskette.
I can use doswrite to copy each file individually, but is there a way to
copy the entire directory at once.

Any help would be appreciated! Thanks in advance

 
 
 

copying files to a dos diskette

Post by Alberto Varesi » Fri, 12 Jan 2001 01:51:31



> I'm trying to copy a directory full of small text files to a dos diskette.
> I can use doswrite to copy each file individually, but is there a way to
> copy the entire directory at once.

> Any help would be appreciated! Thanks in advance

Get mtools from Bull's site and use mcopy ...
Sorry but I'm in a hurry ...

--
 Alberto Varesio - Certified AIX V4.3 System Support  Phone: +39-011-415-8111
 EDIST Spa - Via Goito 51/A      Riding the world       Fax: +39-0270040-8636
 10195 Grugliasco (TO) ITALY     on a Honda CB500      Cell: +39-349-492-4769


 
 
 

copying files to a dos diskette

Post by Ellerman, Scott [RICH2:2I38:EXCH » Wed, 17 Jan 2001 01:17:34



> I'm trying to copy a directory full of small text files to a dos diskette.
> I can use doswrite to copy each file individually, but is there a way to
> copy the entire directory at once.

You have to call doswrite once for each file.  That's the only way to do it
using the "supported" AIX diskette utils (i.e. the bos.dosutils fileset). I
always use a for loop.

for i in `ls mydir`
do
doswrite $i $i
done

You can download the mtools package from your local Bull mirror site; it has
more sophisticated (and more DOS-like) tools.

http://www.rge.com/pub/systems/aix/bull/  -> U.S. mirror for Bull AIX
freeware archive.
--
Scott A. Ellerman                         \ IBM Certified
Lab Administrator                          \   Advanced Technical Expert -
AIX
GSM/UMTS Call Server OA&M Integration (2I38)\  Specialist - RS/6000 SP
Nortel Networks                              \ Specialist - AIX HACMP

Any opinions expressed in this message are mine alone and not those
of Decision Consultants Inc., IBM, or Nortel Networks, unless expressly
stated otherwise.