Results 1 to 3 of 3

Thread: [RESOLVED] APIs instead of File System Object

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2006
    Location
    Egypt
    Posts
    162

    Resolved [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:
    1. Option Explicit
    2. Dim FSO As New FileSystemObject
    3.  
    4. Private Sub cmdCollect_Click()
    5. Dim SubFolder As Folder
    6. Dim RootFolder As Folder
    7.  
    8. Set RootFolder = FSO.GetFolder("C:\)
    9. For Each SubFolder In RootFolder.SubFolders
    10.     Print SubFolder.Path
    11. Next
    12. End Sub


    Can I do this with APIs , I prefer any method rather than (FindFirstFile,FindNextFile&FindClose) , if possible.

    BTW : for VB6

    Thanks
    Mohammed Sayed - Egypt - Anesthetist



    =

    =

  2. #2
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    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

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jun 2006
    Location
    Egypt
    Posts
    162

    Re: APIs instead of File System Object

    I know that they are APIs , I said :
    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.
    Mohammed Sayed - Egypt - Anesthetist



    =

    =

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