home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Elysian Archive
/
AmigaElysianArchive.iso
/
newc_dev
/
mmdir.lha
/
MmDir.doc
< prev
Wrap
Text File
|
1992-10-27
|
4KB
|
114 lines
NAME
MmDir - Make multiple directories. WB2.02 and above only.
SYNOPSIS
MmDir NAME/M
DESCRIPTION
MmDir takes one or more directory and path names, and attempts to
create a directory structure for this path. It will make all of the
directories necessary to give the specified path and directory. Ie it
will make a whole directory structure in one go.
OPTIONS
NAME/M This is a list of directories/paths. Each one is
considered separately and will be taken as if the command had been
used multiple times. This is an example of WB2.0's multiple argument
parsing. At least one argument must be specified else an error
message is displayed. Like most commands, entering "MmDir ?" will
give this template.
EXAMPLES
Here are several examples of using MmDir...
MmDir ram:OneDir
This will make the single directory in ram: (assuming that
ram: exists, and there is enough memory free) and works exactly the
same as the MakeDir command.
MmDir ram:OneDir/TwoDir/ThreeDir
This will make the directory structure as given (with the same
assumptions as before.) This is the main advantage of MmDir over
MakeDir.
MmDir ram:Prefs/Env-archive/Sys df0:Prefs/Env-Archive/Sys
ram:T ram:CLIPS
This will make all of the directories given (same assumptions as
before) and is an example of multiple arguments.
MmDir ram:f:e ram:e/f ram:e/f
The first argument "ram:f:e" will give an error, as it is an
invalid name. The second argument will create the directory
"ram:e/f" and the third will give the error "Directory already exists:
ram:e/f" since the previous argument has just created it.
FILES
MmDir - the program
MmDir.doc - this documentation file
NOTES
This command has a WB2.0 version string which can be viewed using
version MmDir FULL
BUGS
If a large directory structure is being created, it is possible that
the disk will run out of space part way through creating it. In this
case, the program will give an error, but will leave the partly
created directory in place. This may or may not be desirable - One
person's bug is another one's feature!
AUTHORS
V1.0 written jointly between James McDonald and Mark McPherson
Original code. 2nd July 1992
V1.1 Written from scratch by Mark McPherson
Code structure changed to use include files and program was
made to be more like other WB2 commands. 3rd July 1992
V1.2 Updated from V1.1 by Mark McPherson
Now uses the stack for most operations. This reduces the code
size considerably. 4th July 1992
All versions were written in assembly lanuage using Devpac V3.02.
SEE ALSO
MakeDir
DISTRIBUTION
All code is copyright (C) 1992 Mark McPherson and James McDonald. It
is freely distributable and can be copied freely. It may not be
modified, sold or included in any commercial distribution without my
written permission. I also ask that this documentation file
accompanies the main program. The authors take no responsibility for
any loss or damage that may arise from using this program.
I can be contacted on the Internet at: msm@ukc.ac.uk
where I will be glad to help with this program and any other matter to
do with the Amiga (If I can of course!)
Note that I don't want to write a WB1.3 version since I believe that
WB2.0 is the way forward (and writing for WB1.3 is somewhat more
difficult!). If you haven't already upgraded - DO SO!
Written and (C) 4th July 1992 by Mark McPherson.