if i wish to check c:\temp\Hell.tmp
Private Sub Form_Load()
If FileExists("C:\Temp\Hell.tmp") Then
MsgBox "Yes"
Else
MsgBox "No"
End If
End Sub
Private Function FileExists(FileName As String) As Boolean
If Len(Dir(FileName)) > 0 Then
FileExists =3D True
End If
End Function
----- Original Message -----
From: philip.moh@a...
To: professional vb
Sent: Wednesday, June 20, 2001 4:00 AM
Subject: [pro_vb] check file
does anyone know how to check to the c:\temp directory to see if the
particular file is exist?? code will be helpful...thanks