Solved How can i create multi-folder using VBS script.?

January 23, 2013 at 08:48:00
Specs: Windows XP

HI all.

The batch file can using command to make multi-folder:
md dir1, dir2. dir3,

How can I want using vbs script to make multi-folders in any folder.?

This script i maked. But it only make one folder:

;=====begin vbs script

set mkdir = CreateObject("Scripting.FileSystemObject")
making = mkdir.CreateFolder("Mydir")

;=====end vbs script

Thanks.


See More: How can i create multi-folder using VBS script.?

Report •


#1
January 23, 2013 at 08:52:29
✔ Best Answer
Keep calling CreateFolder(). One call for each directory you wish to make.

How To Ask Questions The Smart Way


Report •

#2
January 24, 2013 at 03:28:26
If you know the names:

for %%F in (one two abc other) do md %%F

=====================
M2 Golden-Triangle


Report •
Related Solutions


Ask Question