Results 1 to 2 of 2

Thread: [RESOLVED] GetAttr and Vista

  1. #1

    Thread Starter
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Resolved [RESOLVED] GetAttr and Vista

    One of my routines checks for all sub-folders within a main folder which works fine on XP but not Vista.

    With XP GetAttr returns 16 (a folder) but with Vista it returns 8208 (?) and as a result the msgbox isn't displayed.

    Is there a trick with Vista and GetAttr to return a folder?

    Code:
    If GetAttr(tPortSettings.sDBLocation & "Themes\" & sFileName) = vbDirectory Then
                
                MsgBox "Is Folder!
                
                End If

  2. #2

    Thread Starter
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Resolved Re: GetAttr and Vista

    If I use the below the msgbox is now displayed on Vista (and XP)

    Code:
    If ((GetAttr(tPortSettings.sDBLocation & "Themes\" & sFileName) And vbDirectory) = vbDirectory) Then
    
    MsgBox "Is Folder!
                
    End If

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