Is there a way to search a folder and all of its sub folders with win32 code. I tried to use FileSearch(), but it only searches that folder, not its sub folders.
I don't know of a simple component. The way I do it has been discussed in this forum before. You may have to do a search for it. It is basically the same way it was done in DOS. You find the first file (FindFirstFile), check to see if it is a directory (. or ..), it so, go into the directory, and find it first file, see if it is a directory, ect, etc, then repeat on the next file (FindNextFile). Somewhere I have a recursive function that will do it.
Does anybody know of a good VCL?
If nobody answers soon, post here again and I'll post some code.
James P. Cottingham
When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity. [tab][tab]Albert Einstein explaining his Theory of Relativity to a group of journalists.
I don't know of any native VCL components. You can probably find a third party VCL, though.
James P. Cottingham
When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity. [tab][tab]Albert Einstein explaining his Theory of Relativity to a group of journalists.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.