Click to See Complete Forum and Search --> : LIST OF FILES
arnaud vanheu
February 14th, 2000, 04:20 AM
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!!!
Lothar Haensler
February 14th, 2000, 04:36 AM
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.
arnaud vanheu
February 14th, 2000, 08:36 AM
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!
Lothar Haensler
February 14th, 2000, 08:41 AM
I suggest that you post the offending code here in the forum so that we can look at it.
arnaud vanheu
February 14th, 2000, 09:02 AM
the code is the code of microsoft on :
http://support.microsoft.com/support/kb/articles/Q185/4/76.ASP
it is the second method without api which causes troubles (error 424!!!)!
Lothar Haensler
February 14th, 2000, 09:21 AM
works perfectly on my machine.
Why don't you tell us the line where the error occurred?
arnaud vanheu
February 14th, 2000, 10:07 AM
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
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.