robwm
-
Total Posts
:
118
- Scores: 0
-
Reward points
:
0
- Joined: 3/10/2009
- Location: Seattle, WA
-
Status: offline
|
How to build a new file system path
Wednesday, December 07, 2011 11:51 AM
( permalink)
Hi, I would like to know how to build a specific folder path with vbscript. Is there a method available that can build a multi-level path all at once or do you have to build one level at a time? I am thinking of the way mkdir works in DOS. You can use mkdir with the complete path you want and it will make it in one shot. I would like to make a path - C:\level1\level2\level3 Is this the only way to do it or can you use one method to do it all at once? Dim objFolder, objFSO Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFolder = objFSO.CreateFolder("C:\level1") Set objFolder = objFSO.CreateFolder("C:\level1\level2") Set objFolder = objFSO.CreateFolder("C:\level1\level2\level3") Thanks, Rob
|
|
|
|
ehvbs
-
Total Posts
:
3320
- Scores: 112
-
Reward points
:
0
- Joined: 6/22/2005
- Location: Germany
-
Status: offline
|
Re:How to build a new file system path
Wednesday, December 07, 2011 12:39 PM
( permalink)
|
|
|
|