Results 1 to 3 of 3

Thread: [RESOLVED] Check if system/hidden directory exists

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    107

    Resolved [RESOLVED] Check if system/hidden directory exists

    I've found a lot of examples on checking wether directories exist or not. The examples (and I've used a lot) can't detect hidden or system directories though. Is there a way to?

    Thanks

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Check if system/hidden directory exists

    vb Code:
    1. Public Function DirectoryExist(ByVal sPath As String) As Boolean
    2.     DirectoryExist = (Len(Dir$(sPath, vbDirectory Or vbHidden Or vbSystem)) <> 0)
    3. End Function

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    107

    Re: Check if system/hidden directory exists

    That's brilliant. Thank you!

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