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!!!
Printable View
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!!!
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.
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!
I suggest that you post the offending code here in the forum so that we can look at it.
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!!!)!
works perfectly on my machine.
Why don't you tell us the line where the error occurred?
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