vdereberya,
приведенный код уже содержал ответ на Ваш вопрос, но тем не менее:
Код:
Dim input, StrDSTFolder, StrLoctFolder, StrDp2LoctFolder
ArrSubFolders = Array("Folder1", "Folder2", "Folder3", "Folder4", "Folder5")
Input = InputBox("Введите имя папки")
StrDSTFolder = "F:\"
StrLoctFolder = StrDSTFolder & Input & "\"
Set objShellApp = CreateObject("Shell.Application")
Set objFolder = objShellApp.NameSpace(StrDSTFolder)
objFolder.NewFolder(Input)
Wscript.Sleep 3000
Set objSubFolder = objShellApp.NameSpace(StrLoctFolder)
For Each StrSubFolder In ArrSubFolders
objSubFolder.NewFolder(StrSubFolder)
IF ArrSubFolders(0) = StrSubFolder Then
StrDp2LoctFolder = StrLoctFolder & ArrSubFolders(0) & "\"
Set objSubDp2Folder = objShellApp.NameSpace(StrDp2LoctFolder)
objSubDp2Folder.NewFolder("Dp2LoctFolder") ' В Folder1 вкладываем один каталог
End if
Next
Wscript.Echo "D O N E"
Wscript.Quit 0