I guess if he added the trailing backslash to all of the vals in the $subDirs array (or during the copy), then the md command would be useless.

From the Copy Command portion of the 4.22 chm

Quote:


; If the target (directory) does not exist,
; and the target specification does not have a
; trailing backslash, COPY will fail with an
; errorcode 3 ("path not found")
COPY "S:\MyDir\" "S:\NewDir" ; fails if NewDir does not exist