|
-
Apr 12th, 2001, 09:18 PM
#1
Thread Starter
Hyperactive Member
This code should retrieve any folder it encounters correct? Thanks.
Code:
if(GetFileAttributes(Find.cFileName)==FILE_ATTRIBUTE_DIRECTORY)
//do whatever here.
Matt 
-
Apr 13th, 2001, 04:46 AM
#2
Monday Morning Lunatic
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
-
Apr 13th, 2001, 06:17 PM
#3
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|