G
G Dean Blake
I have a directoryInfo named Folder with a name property of "A:\". I'm then
trying to loop through and expand it a level.
But when I say:
For Each myFolder in Folder.GetDirectories...
A series of dialog boxes are displayed saying the drive is empty (it is) and
an exception is thrown "drive is empty". The dialog boxes appear before I
get control in the catch Statement.
This happens for empty CD drivs too.
How can I test for this without getting an exception and all of those dialog
boxes?
Thanks,
Gary
trying to loop through and expand it a level.
But when I say:
For Each myFolder in Folder.GetDirectories...
A series of dialog boxes are displayed saying the drive is empty (it is) and
an exception is thrown "drive is empty". The dialog boxes appear before I
get control in the catch Statement.
This happens for empty CD drivs too.
How can I test for this without getting an exception and all of those dialog
boxes?
Thanks,
Gary