TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: JIM TANNER
from: ERIC SCHONNING
date: 1995-05-23 00:00:00
subject: Re: MKDIR

JT>     Is MKDIR capable of making "nested" directories as in:
 
JT>     CHDRV "C"
JT>     MKDIR "C:\One\Two\Three"
  
It won't make nested sub-dirs like that.  I wrote a subroutine that
would make them however but forget which program its in.  Not too hard
to do a combination of using DIR$ with attrib of 16 to see if it exists
first (and then of course make sure its a dir and not a file by
checking the DTA info), if not then MKDIR it then repeat for next nest.
ex:  1st check to see if "C:\ONE" exists, if not then make it.  Then
check for "C:\ONE\TWO", if its not there then make it, etc.  I think I
just used a FOR loop along the string looking for \, then check for &
make dir if neccessary then move on along entire string (of course once
you reach the end then you can mkdir the entire string).  Does this
make sense?  I probably could have wrote the code by now after this
explanation.  Maybe later...I gotta cram for finals right now.   Eric
--- QM v1.00
---------------
* Origin: Creekside Manor (805) 484-8016 CdCom Support BBS (1:206/2512.0)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.