Search results

  1. A

    Check if a directory exist and create a directory

    This function works for me :- Public Function CheckDir(strDirectoryPath As String) As Boolean Dim IsDir As Boolean If Len(Dir(strDirectoryPath, vbDirectory)) = 0 Then IsDir = False Else IsDir = True End If CheckDir = IsDir End Function
Back
Top Bottom