T
Todd Lemen
I have routine that uses the FileSystemObject to
determine the existance of a folder. If the folder is
found, I pass control to a function that uses a Scripting
Directory object to populate a list with the names of
subdirectories. If the folder is not found, it offers
the user a chance to create one. While it does so, it
creates several subfolders. When this routine finishes,
the procedure deconstructs the FileSystemObject (by
setting the FSO variable to Nothing) and passes control
to the aforementioned "populate the list" function.
Problem seems to be a file system refresh... When
control passes after creating the folder and subfolders,
I have to exit these routines entirely before the
Directory object can read the new folder's subfolders. Is
there a "refresh file system" command somewhere?
determine the existance of a folder. If the folder is
found, I pass control to a function that uses a Scripting
Directory object to populate a list with the names of
subdirectories. If the folder is not found, it offers
the user a chance to create one. While it does so, it
creates several subfolders. When this routine finishes,
the procedure deconstructs the FileSystemObject (by
setting the FSO variable to Nothing) and passes control
to the aforementioned "populate the list" function.
Problem seems to be a file system refresh... When
control passes after creating the folder and subfolders,
I have to exit these routines entirely before the
Directory object can read the new folder's subfolders. Is
there a "refresh file system" command somewhere?