|
-
February 14th, 2000, 05:20 AM
#1
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!!!
-
February 14th, 2000, 05:36 AM
#2
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.
-
February 14th, 2000, 09:36 AM
#3
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!
-
February 14th, 2000, 09:41 AM
#4
Re: LIST OF FILES
I suggest that you post the offending code here in the forum so that we can look at it.
-
February 14th, 2000, 10:02 AM
#5
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!!!)!
-
February 14th, 2000, 10:21 AM
#6
Re: LIST OF FILES
works perfectly on my machine.
Why don't you tell us the line where the error occurred?
-
February 14th, 2000, 11:07 AM
#7
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|