Results 1 to 4 of 4

Thread: I need a tip

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 1999
    Location
    Louisville, KY
    Posts
    48

    Post

    What is the most efficient way to determine if a given file exists?

  2. #2
    New Member
    Join Date
    Jan 1999
    Posts
    7

    Post

    If Dir(filepath) = "" then NoFileExists

  3. #3
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    Code:
    If Len(Dir("C:\FilePath\FileName.ext")) Then
        MsgBox "File Exists"
    Else
        MsgBox "File Doesn't Exist"
    End If
    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]


  4. #4

    Thread Starter
    Member
    Join Date
    Mar 1999
    Location
    Louisville, KY
    Posts
    48

    Post

    thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width