Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: check file


Message #1 by philip.moh@a... on Wed, 20 Jun 2001 19:00:08 +0800
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


  Return to Index