Guest User

Untitled

a guest
May 26th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. If Len(Dir(databasetext)) = False Then
  2. MsgBox "Database Path Not Available"
  3. End if
  4.  
  5. Private Declare Function PathIsDirectory Lib "Shlwapi" _
  6. Alias "PathIsDirectoryW" (ByVal lpszPath As Long) As Long
  7.  
  8. Function DirExists(ByVal sDirName As String) As Boolean
  9. 'NB The shlwapi.dll is built into Windows 2000 and 98 and later: '
  10. ' it comes withInternet Explorer 4 on NT 4 and 95. '
  11. 'NB Calling "Wide" (Unicode) version. Always available. '
  12. DirExists = (PathIsDirectory(StrPtr(Trim$(sDirName))) <> 0)
  13. End Function
  14.  
  15. Private Declare Function PathIsDirectory Lib "Shlwapi" _
  16. Alias "PathIsDirectoryW" (ByVal lpszPath As Long) As Long
  17.  
  18. Function DirExists(ByVal sDirName As String) As Boolean
  19. 'NB The shlwapi.dll is built into Windows 2000 and 98 and later: '
  20. ' it comes withInternet Explorer 4 on NT 4 and 95. '
  21. 'NB Calling "Wide" (Unicode) version. Always available. '
  22. DirExists = (PathIsDirectory(StrPtr(Trim$(sDirName))) <> 0)
  23. End Function
Add Comment
Please, Sign In to add comment