Code:
Dim fs
Dim directoryarray
Dim arrayitem
Dim sPath
Dim sPathConc
sPath = "c:\Access DB\XML_Output\ATMS-DS\Input\Directives"
Set fs = CreateObject("Scripting.filesystemobject")
directoryarray = Split(sPath, "\")
For Each arrayitem In directoryarray
sPathConc = sPathConc & arrayitem & "\"
Debug.Print sPathConc
If fs.folderexists(sPathConc) Then
'do whatever if the folder already exists
Else
fs.createfolder (sPathConc)
End If
Next arrayitem
Set fs = Nothing
you have to recursively create directories if they do not exist.