Originally posted by Redth
looking quickly at the replies, i didn't see this api... i like to use this method in my projects:


VB Code:
  1. Public Declare Function PathFileExists Lib "shlwapi.dll"
  2. Alias "PathFileExistsA" (ByVal pszPath As String) As Long
  3.  
  4. Public Function FileExists(strPath As String) As Boolean
  5.     If PathFileExists(strPath) = 1 Then
  6.         FileExists = True
  7.     Else
  8.         FileExists = False
  9.     End If
  10. End Function

That's an easy way, and it too works on a network...
Perfect code!