[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: MCopy Woes MSDOS Copy
In article <slrn4trbtn.h7c.scraft@bigpapa.nothinbut.net>,
<scraft@bigpapa.nothinbut.net> wrote:
>
> I have had a hell of a time using the "MCOPY" that is a part
> of the MSDOS tools (now sold with the BlueDisk). I cannot
> for any reason copy a batch of files, although doing it one
> by one seems to work.
I expect it doesn't support wildcards.
The only option that comes to mind would be to write a script in GNO or
ORCA/Shell to run the program for each file.
Unfortunately, ORCA/Shell doesn't have a facility for doing a counted
loop, so you still have to list out all the numbers. There may be a
third-party command which can do calculations on shell variables,
which would make things easier.
Try something like this:
for i in 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20
mcopy .d7 eamon{i}.dsk /dest/eamon{i}.dsk
end
You'll have to check the syntax of the "mcopy" command - I only used
it briefly a few years ago. You'd have to replace the drive
specification with an appropriate one.
Assuming the above works, just copy and paste it a few times, and
change the numbers as appropriate to do all the copies you need.
If you are only using the simple shell that comes with the MS-DOS
tools, you are out of luck.
--
David Empson
dempson@actrix.gen.nz
Snail mail: P.O. Box 27-103, Wellington, New Zealand