Message 1 of 12
File List with VBA

Not applicable
07-10-2000
04:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Everyone,
I have a requirement to obtain all of the .dwg files in the folder
containing the active drawing and all sub directories thereunder. I have am
currently using "sendcommand", shelling to Dos, creating a temp text file in
the temp directory, and then reading the file back in with VBA. Although it
is working well, its cumbersome and hacked to say the least. I have several
other apps in full VB that use the file controls as demonstrated in the
"winseek" app. The file controls don't seem to be available in VBA. Does
anyone have or know of a more elegant method of obtaining a file list from a
given dir and all its sub dirs?
Thanks in Advance,
Gary
I have a requirement to obtain all of the .dwg files in the folder
containing the active drawing and all sub directories thereunder. I have am
currently using "sendcommand", shelling to Dos, creating a temp text file in
the temp directory, and then reading the file back in with VBA. Although it
is working well, its cumbersome and hacked to say the least. I have several
other apps in full VB that use the file controls as demonstrated in the
"winseek" app. The file controls don't seem to be available in VBA. Does
anyone have or know of a more elegant method of obtaining a file list from a
given dir and all its sub dirs?
Thanks in Advance,
Gary