Results 1 to 3 of 3

Thread: File_Attributes

  1. #1

    Thread Starter
    Hyperactive Member MPrestonf12's Avatar
    Join Date
    Jun 1999
    Location
    NY
    Posts
    330
    This code should retrieve any folder it encounters correct? Thanks.

    Code:
    if(GetFileAttributes(Find.cFileName)==FILE_ATTRIBUTE_DIRECTORY)
    //do whatever here.
    Matt

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Try this:
    Code:
    if(GetFileAttributes(Find.cFileName) & FILE_ATTRIBUTE_DIRECTORY)
    That will handle any hidden or system folders as well.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

    Thread Starter
    Hyperactive Member MPrestonf12's Avatar
    Join Date
    Jun 1999
    Location
    NY
    Posts
    330
    Parksie, that seems to be catching normal files such as EXE's as well as folders. Do you know what will just catch folders? Thanks
    Matt

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