Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Directory Create Utility
#3
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
Reply


Messages In This Thread
Directory Create Utility - by eoredson - 09-16-2022, 02:58 AM
RE: Directory Create Utility - by SpriggsySpriggs - 09-16-2022, 01:07 PM
RE: Directory Create Utility - by Pete - 09-16-2022, 03:18 PM
RE: Directory Create Utility - by eoredson - 09-17-2022, 02:03 AM
RE: Directory Create Utility - by SpriggsySpriggs - 09-16-2022, 06:10 PM
RE: Directory Create Utility - by Pete - 09-17-2022, 03:48 AM
RE: Directory Create Utility - by Kernelpanic - 09-17-2022, 11:43 AM



Users browsing this thread: 4 Guest(s)