CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Thread: LIST OF FILES

  1. #1
    Join Date
    Feb 2000
    Posts
    6

    LIST OF FILES

    I would like to know how I can make a list of all folders (with all files) on a target drive using the
    Win95/NT4 and 3.11 and 95 (with api 16 and 32 bits)
    I tried some programmes but it didn't run correctly for 16 bits
    tanks for all reponses!!!


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: LIST OF FILES

    if you want a 16-bit/32-bit solution I suggest that you stay away from API solutions and use the VB Dir command instead.
    You can use it to find all directories in a folder and all files in that directory.
    MSDN article Q189631 has a complete source code sample.


  3. #3
    Join Date
    Feb 2000
    Posts
    6

    Re: LIST OF FILES

    thanks a lot to reply me!
    but i have some problems with this solution.
    when i used Q185476 with 2 method, I have a error 424 with the vb programmation method and i can't understand why!



  4. #4
    Join Date
    May 1999
    Posts
    3,332

    Re: LIST OF FILES

    I suggest that you post the offending code here in the forum so that we can look at it.


  5. #5
    Join Date
    Feb 2000
    Posts
    6

    Re: LIST OF FILES

    the code is the code of microsoft on :

    http://support.microsoft.com/support.../Q185/4/76.ASP

    it is the second method without api which causes troubles (error 424!!!)!


  6. #6
    Join Date
    May 1999
    Posts
    3,332

    Re: LIST OF FILES

    works perfectly on my machine.
    Why don't you tell us the line where the error occurred?


  7. #7
    Join Date
    Feb 2000
    Posts
    6

    Re: LIST OF FILES

    OK!
    expl : i have a file nou.txt in C:\toto\

    if I search *.txt, after some loop my var DIRNAME = nou.txt.txt and this is a error in a loop!
    it is with Using Built-In Visual Basic Functions command 2 and i used VB6


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

Featured