Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need Help: Create folder based on folder path passed in 1

Status
Not open for further replies.

d1trupinoy

Technical User
Dec 11, 2001
14
US
Newbie to VBS here. So far this forum has been very helpful to me in learning. I would like to create a script that creates a folder based on a path that I pass in. The problem I have is that depending on the path, multiple folder may need to be created in order to drill down to the correct level wfor the final folder. Ex.

I pass in "\\networkserver\level1\level2\\level3"

Say only "level1" folder exists so a "level2" folder will need to be created, then a "level3" folder created. I know I need to simple create a loop that parses the string I pass to create each folder seperated by "\" if it does not exist or something like that. Any help is appreciated.
 
Hello d1trupinoy!

I think I have just the thing for you. Check out this thread...
thread181-27567

Good luck!

He who has knowledge spares his words, and a man of understanding is of a calm spirit. Even a fool is counted wise when he holds his peace; when he shuts his lips, he is considered perceptive. - King Solomon
 
snotmare, I looked at that thread and it is about "After update property on a form". I do not see how that relates to my question on creating multiple folders based on path
 
Oh, bummer. Copied in the wrong one.

Try this!

thread329-1032777

Sorry for the confusion.

He who has knowledge spares his words, and a man of understanding is of a calm spirit. Even a fool is counted wise when he holds his peace; when he shuts his lips, he is considered perceptive. - King Solomon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top