Hi All,
I am using the FileSystemObject to load a table with files from my harddrive.
When I use the following
.NewSearch
.LookIn = "E:\ '(also tried E:\)
.SearchSubFolders = True
.FileType = 1 'msoFileTypeAllFiles=1
.FileName = ".mdb"
.Execute
...At this point I list the files, do a .FileLen and .FileDatetime on each one, then load that info to a table.
The (extremely) odd and frustrating thing is--it puts a "C:\" on subfolders that also exist in E:\, for example, I had changed HD's a while back and my E: drive has a "Program Files" folder. It's contents are much different, and FileSystemObject will show a:
"C:\Program Files\SomeOldApp\Some.mdb"
..which does not exist, but:
"E:\Program Files\SomeOldApp\Some.mdb" Does exist!
To compound this, it also shows files, such as
C:\JimTest\TestFolder\Test.mdb
Which does not exist anywhere!
As I wrote this, and before I posted, I think I found the answer--but still a question:
How do I tell FileSystemObject that dead shortcuts in the Recent File List are NOT REAL FILES!!!. Is that an option with FileSystemObject?
jsteph
I am using the FileSystemObject to load a table with files from my harddrive.
When I use the following
.NewSearch
.LookIn = "E:\ '(also tried E:\)
.SearchSubFolders = True
.FileType = 1 'msoFileTypeAllFiles=1
.FileName = ".mdb"
.Execute
...At this point I list the files, do a .FileLen and .FileDatetime on each one, then load that info to a table.
The (extremely) odd and frustrating thing is--it puts a "C:\" on subfolders that also exist in E:\, for example, I had changed HD's a while back and my E: drive has a "Program Files" folder. It's contents are much different, and FileSystemObject will show a:
"C:\Program Files\SomeOldApp\Some.mdb"
..which does not exist, but:
"E:\Program Files\SomeOldApp\Some.mdb" Does exist!
To compound this, it also shows files, such as
C:\JimTest\TestFolder\Test.mdb
Which does not exist anywhere!
As I wrote this, and before I posted, I think I found the answer--but still a question:
How do I tell FileSystemObject that dead shortcuts in the Recent File List are NOT REAL FILES!!!. Is that an option with FileSystemObject?
jsteph