F
Fredrated
using dir$ I don't seem to get all of the files in a director.
in the folowing loop, dir$ gives me 37,184 files, but windows explorer
directory properties says there are 37,315 files.
(These files are stored in one directory by a commercial application, I have
no control over this)
CODE:
strFile = Dir$(strDir)
rs.AddNew
rs!Filename = strFile
rs.Update
Do While True
strFile = Dir$()
If strFile = "" Then GoTo Done
rs.AddNew
rs!Filename = strFile
rs.Update
Loop
Done:
etc. etc.
ENDCODE
A (possibly related) problem is that windows explorer can't seem to list all
the files in name order, perhaps because there are too many to handle
properly?
For example, the following is a typical section of the directory list, in
name order:
2nd 15 E 4Th (13)1.jpg
02-Right fender1.JPG
3-18-03ACK1.doc
03 View of trees1.jpg
3KubicACK1.doc
03-Right door1.JPG
Any suggestion are welcome, since we are about to ditch this application. I
am in the process of trying to determine the completeness and accuracy of the
data, but things like the dir$ problem and the seemingly odd behavior of the
directory list are getting in the way.
Any suggestions greatly appreciated, thanks in advance for any help.
Fred
in the folowing loop, dir$ gives me 37,184 files, but windows explorer
directory properties says there are 37,315 files.
(These files are stored in one directory by a commercial application, I have
no control over this)
CODE:
strFile = Dir$(strDir)
rs.AddNew
rs!Filename = strFile
rs.Update
Do While True
strFile = Dir$()
If strFile = "" Then GoTo Done
rs.AddNew
rs!Filename = strFile
rs.Update
Loop
Done:
etc. etc.
ENDCODE
A (possibly related) problem is that windows explorer can't seem to list all
the files in name order, perhaps because there are too many to handle
properly?
For example, the following is a typical section of the directory list, in
name order:
2nd 15 E 4Th (13)1.jpg
02-Right fender1.JPG
3-18-03ACK1.doc
03 View of trees1.jpg
3KubicACK1.doc
03-Right door1.JPG
Any suggestion are welcome, since we are about to ditch this application. I
am in the process of trying to determine the completeness and accuracy of the
data, but things like the dir$ problem and the seemingly odd behavior of the
directory list are getting in the way.
Any suggestions greatly appreciated, thanks in advance for any help.
Fred