Results 1 to 3 of 3
  1. #1
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    File existis... (6.0)

    only to understnad...

    I knoe the way with FSO to che if file existis in dir, but the cde is the same???

    If Dir("C:EPFTABULATI.EPF") <> vbNullString Then
    MsgBox ("NON TROVATO")
    End If

  2. #2
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: File existis... (6.0)

    Have you tested this to see if it works.

    It would seem easy enough to test it with a file that exists, a file that doesn't exist, and a folder that doesn't exist. You could then post the results to let us all know.

    StuartR

  3. #3
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: File existis... (6.0)

    Use

    If Dir("C:EPFTABULATI.EPF") = vbNullString Then

    instead.

Posting Permissions

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