Use the Dir function.
VB Code:
Private Function IsDirExisting(ByVal sDir As String) As Boolean IsDirExisting = CBool(Len(Dir$(sDir, vbDirectory))) End Function Private Function IsFileExisting(ByVal sFile As String) As Boolean IsFileExisting = CBool(Len(Dir$(sFile))) End Function




Reply With Quote