|
-
Dec 13th, 2002, 02:57 PM
#18
PowerPoster
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:
Public Declare Function PathFileExists Lib "shlwapi.dll"
Alias "PathFileExistsA" (ByVal pszPath As String) As Long
Public Function FileExists(strPath As String) As Boolean
If PathFileExists(strPath) = 1 Then
FileExists = True
Else
FileExists = False
End If
End Function
That's an easy way, and it too works on a network...
Perfect code!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|