09-16-2022, 03:18 PM
I like using dots but mostly just when I use TYPEs, for the same reason.
So if I had
LINE INPUT "Make what Dir/Path: "
And input "myfolder\folder1\pete"
I would get a$ = "myfolder\folder1\pete"
Parse it out with INSTR()
myfolder
folder1
pete
Check for IF _DIREXISTS for each parsed dir name.
Make the directory if it does not exists.
Follow the parsing down the path to completion.
That's handy.
Does it also get into making multiple sub-directories like: myfolder/folder1, myfolder/folder2, etc.? I used to use a FOR/NEXT loop to assign sub-folders numbers with a MKDIR loop for that.
Pete
So if I had
LINE INPUT "Make what Dir/Path: "
And input "myfolder\folder1\pete"
I would get a$ = "myfolder\folder1\pete"
Parse it out with INSTR()
myfolder
folder1
pete
Check for IF _DIREXISTS for each parsed dir name.
Make the directory if it does not exists.
Follow the parsing down the path to completion.
That's handy.
Does it also get into making multiple sub-directories like: myfolder/folder1, myfolder/folder2, etc.? I used to use a FOR/NEXT loop to assign sub-folders numbers with a MKDIR loop for that.
Pete