[RESOLVED] APIs instead of File System Object
We can collect sub folder for another folder using a Reference to (scrrun.dll) , by this code :
VB Code:
Option Explicit
Dim FSO As New FileSystemObject
Private Sub cmdCollect_Click()
Dim SubFolder As Folder
Dim RootFolder As Folder
Set RootFolder = FSO.GetFolder("C:\)
For Each SubFolder In RootFolder.SubFolders
Print SubFolder.Path
Next
End Sub
Can I do this with APIs , I prefer any method rather than (FindFirstFile,FindNextFile&FindClose) , if possible.
BTW : for VB6
Thanks
Re: APIs instead of File System Object
Quote:
Originally Posted by msayed2004
Can I do this with APIs , I prefer any method rather than (FindFirstFile,FindNextFile&FindClose)
eh? they are the APIs - you'll need to use them if you use API
see VBnet for loads of great file API routines
Re: APIs instead of File System Object
I know that they are APIs , I said :
Quote:
I prefer any method rather than...
I searched that website and no other way , so it is resolved , thank you buddy , thank you again for that site , I never saw it. :)