
Signature
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
http://www.veign.com/vrc_main.asp
--
> The Subject line kinda says it all. I'm trying to find the most
> efficient way in VB6 of determining whether a particular Folder
[quoted text clipped - 4 lines]
>
> Thanks in advance.
I've just tossed up a fast routine using FindFirst/Next to return true if a
folder contains 1 file or more, and another to test for subfolders.

Signature
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
: Private Function HasFiles(ByVal strPath As String) As Boolean
:
[quoted text clipped - 7 lines]
: or if you dont want to use the DIR function and risk affecting another part
: of your application then try:
http://vbnet.mvps.org/code/fileapi/recursivefiles_minimal_multipleselective.htm
: and just exit if one file is found - should be very fast.
:
[quoted text clipped - 6 lines]
: >
: > Thanks in advance.
Veign - 31 Dec 2004 15:19 GMT
Even better...Thanx Randy

Signature
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
http://www.veign.com/vrc_main.asp
--
> I've just tossed up a fast routine using FindFirst/Next to return true if a
> folder contains 1 file or more, and another to test for subfolders.
[quoted text clipped - 11 lines]
> part
> : of your application then try:
http://vbnet.mvps.org/code/fileapi/recursivefiles_minimal_multipleselective.htm
> : and just exit if one file is found - should be very fast.
> :
[quoted text clipped - 6 lines]
> : >
> : > Thanks in advance.