Results 1 to 3 of 3
  1. #1
    Silver Lounger
    Join Date
    Jul 2001
    Location
    Ottawa, Ontario, Canada
    Posts
    1,609
    Thanks
    0
    Thanked 1 Time in 1 Post

    Path validity (VB 6)

    I am just venturing out of VBA into VB and need to determine if a given server path is valid/connected. I've not been able to find any code that I can understand. Can anyone offer help?
    Regards
    Don

  2. #2
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Path validity (VB 6)

    What do you mean by "valid"? If you just want to know whether the path actually exists, the Dir command will feel the need:

    ValidPath = Len(Dir$(strPathName, vbNormal)) > 0
    Charlotte

  3. #3
    Silver Lounger
    Join Date
    Jul 2001
    Location
    Ottawa, Ontario, Canada
    Posts
    1,609
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Path validity (VB 6)

    Thank you! Thank you! Thank you!
    Regards
    Don

Posting Permissions

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