home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Elysian Archive
/
AmigaElysianArchive.iso
/
newc_dev
/
mmdir13.lha
/
MmDir.doc
< prev
Wrap
Text File
|
1993-05-17
|
4KB
|
126 lines
NAME
MmDir - Make multiple directories. WB2.0 and above only.
SYSNOPSIS
MmDir NAME/M, I=ICON/S
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. It will also let
you create icons for all of the directories that you create.
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.
I=ICON/S This is a switch for the addition of icons to the
directories made. With this switch on, the default icon for the
drawer shall be added to each directory made.
Like most commands, entering MmDir ? will give the template.
EXAMPLES
Here are several examples of using MmDir...
MmDir ram:OneDir
This will make the single directory in ram: (assuming it ram:
exists, and there is enough memory free) and works exactly the same
as the MakeDir command.
MmDir ram:OneDir/TwoDir/ThreeDir Info
This will make the directory structure as given (with the same
assumptions as before) and this is the main advantage of MmDir over
MakeDir. Also, the program will create icons for all three of the
directories.
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 I
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. Icons will be created for the
directories e and f.
FILES
MmDir - the program
MmDir.doc - this documentation file
NOTES
This command has a WB2.04 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
V1.3 Updated from V1.2 by James McDonald
Added a few code optimisations, and also added the Icon
option for creation of icons with directories. 14th June 1993
All versions were written in assembly lanuage using Devpac V3.02.
SEE ALSO
MakeDir
DISTRIBUTION
All code is copyright 1992 Mark McPherson and James McDonald. It is
freely distributable and can be copied freely. It may not be modified
and I ask that this documentation file accompanies the main program.
It must not be sold or included on any disk that will be sold
commercially, without my permission (Mark McPherson). Commodore has
this permission already. Please send any comments, bug reports, ideas
for enhancements etc to me at:
Mark McPherson
54 Wrestwood Road
Bexhill-On-Sea
East Sussex
England
TN40 2LL
or Internet: msm@ukc.ac.uk
Note that I don't want to write a WB1.3 version, but I will if enough
people ask. (ie more than 1!)
Written and (C) 14th June 1993 by Mark McPherson and James McDonald.