
Paths -- Creating File Path with several levels -- VBScript
I am a beginner at using
VBScript. I hope someone can point me in the right
direction. My problem is this:
I am trying to produce an input box that will allow the user to specify
where (s)he wants a database to be placed. My code includes:
If Not oFileSys.FolderExists(PathName) Then
oFileSys.CreateFolder(PathName) ' ***
End If
This works fine if the user wants a folder below the root directory, like
C:\Cats, but when they want to go a bit further and specify C:\Cats\Dogs the
script gives an error message: "Path not found" and cites the beginning of
the line I have marked with asterisks.
Leonard