DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Valid Path

  1. #1
    Join Date
    Aug 2004
    Posts
    43,023

    Valid Path

    [Originally posted by Tom McGeehan]

    Hello All,

    Given a user-defined path of say:
    c:/temp/whatever
    how do I determine if that path exists in VB 6.0?

    Thanks,
    Tom

  2. #2
    Join Date
    Aug 2004
    Posts
    43,023

    Re:Valid Path

    [Originally posted by Mike Lyons]

    Function FolderExists(ByVal strPath As String) As Boolean
    ' Returns True if the specified folder exists.
    ' False if it does not.
    On Error Resume Next

    FolderExists = (Dir$(strPath, vbDirectory) <> "")
    End Function

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center