If this is your first visit, be sure to check out the FAQ. You must register before you can post. Your first post will be checked for appropriate content
(SPAM) - please allow a bit of time for that. After that, you'll be able to post at will!
Look in your local copy of the windows script documentation regarding FSO (filesystemobject). Within the sample code is exactly what you are looking for. The attached may not work 100% as is, but has the items you asked about.
<pre class="ip-ubbcode-code-pre">
Dim FSO
Dim TestFilePath
TestFilePath = "C:\somepath\somesubfolder"
Set FSO = CreateObject("Scripting.FileSystemObject")
If FSO.FolderExists(TestFilePath) Then
' path already exists
else
Set TestFolder = FSO.CreateFolder(TestFilePath)
end if
Set SubFolders = TestFolder.SubFolders
Set SubFolder = SubFolders.Add("Beatles")
</pre>
Comment