home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frostbyte's 1980s DOS Shareware Collection
/
floppyshareware.zip
/
floppyshareware
/
GLEN
/
CRDIR.ZIP
/
CRDIR.DOC
< prev
Wrap
Text File
|
1990-05-07
|
4KB
|
105 lines
Name: CRDIR
Version: 1.2 (5/2/90)
Purpose: CRDIR performs the same function as the MKDIR command in DOS,
with the added feature that multiple subdirectories and/or
multiple paths may be created at one time.
Syntax: crdir [d:]path [...]
Usage: Path is the name of the directory to create, d: is an optional
drive specification (see your DOS manual for more info on drives).
Each path can be used to create multiple sublevels. Any number of
paths (up to the limit of the command line length) may be
included in the command. Subdirectory names may be separated by
either forward slashes (/) or backward slashes (\).
Examples:
1. crdir a:\test\source\myprog c:\test\source\myprog
The command in this example would perform the equivalent of the
following DOS commands:
mkdir a:\test
mkdir a:\test\source
mkdir a:\test\source\myprog
mkdir c:\test
mkdir c:\test\source
mkdir c:\test\source\myprog
2. crdir haystack/needle/found.it /tmp d:/source
The command in this example would perform the equivalent of the
following DOS commands (note that all /'s are converted to \'s):
mkdir haystack mkdir haystack
cd haystack mkdir haystack\needle
mkdir needle -or- mkdir haystack\needle\found.it
cd needle mkdir \tmp
mkdir found.it mkdir d:\source
cd \
mkdir tmp
d:
cd \
mkdir d:\source
Errors: CRDIR returns the same errors as does MKDIR, with the following
exceptions:
1. If multiple subdirectories are specified in a single path,
no error message will be printed if some of the subdirectories
in the path already exist, unless ALL of the subdirectories
in the path exist.
For example, if you issue:
crdir c:\tmp\newdir\dir1
No error message will be printed if c:\tmp already exists, as
long as either c:\tmp\newdir or c:\tmp\newdir\dir1 does not
exist. If, however, the entire path (c:\tmp\newdir\dir1) does
exist, then an error message stating that the directory cannot
be created will be printed.
2. If multiple subdirectories are specified in a single path, and
one of the subdirectory names is invalid, an error message will
be printed for that subdirectory and for all other lower-level
subdirectories in that path.
For example:
crdir top.dir\mid.dir\abc+def\bottom.dir
In this instance, top.dir and top.dir\mid.dir will be created
correctly, but error messages will be printed for
top.dir\mid.dir\abc+def and top.dir\mid.dir\abc+def\bottom.dir
since the + character is not allowed in path names.
Changes: The changes from the 1.1 version (1/1/89) all have to do with
speed of execution; no change in functionality was made.
Misc: 1. CRDIR is hereby entered into the public domain. Feel free to use
it and to distribute copies of it to everyone you know, as long as
no modification of the program is attempted, and no fee is charged.
2. If you have any problems, comments, requests for modification,
etc., please send them to the address below. I do not guarantee that
I will be able to help you, but I'm usually willing to give it a
shot.
3. Although every attempt has been made to ensure that CRDIR will
perform as indicated and without adverse effects, I do not guarantee
that such effects can not or will not occur. USE CRDIR AT YOUR OWN
RISK!
Author: Francis J. Shields
7 Lexington Road
Millbury, MA 01527