I have the following VB6 code
Dim objdir As Scripting.FileSystemObject
cfile="c:\workingdir\france\include"
If DirExists(cfile) = False Then
objdir.CreateFolder(cfile)
End If
Public Function DirExists(OrigFile As String) As Boolean
Dim fs
Set fs = CreateObject("Scripting.FileSystemObject")
DirExists = fs.FolderExists(OrigFile)
End Function
The folder C:\workingdir\france already exists and there should not be any permissions problems.
I step through the code to make sure the createfolder method is called. No error is raised, but the directory is not created.
Have exactly the same problem in vb.net if I try
my.Computer.FileSystem.CreateDirectory(cfile)