T
Tom Scales
OK, I admit, I am not a VB.NET expert and am still learning, but have run
into an annoying problem. I'm writing a program that has to search the file
system and therefore processes large numbers of directories and files. I've
figured out DirectoryInfo (it's pretty simple), but when I invoke
DirectoryInfo.GetFiles (or even DirectoryInfo.GetDirectories), it can take
forever. Some of the directories have thousands of files in them.
So, my application just sits there and the user thinks it's locked up.
I'm looking for a way to get a callback from the GetFiles function so that I
can actually provide a reasonable processbar. I know I could just flash up a
progress bar or something, but I want the information to be meaningful.
Can someone point me in the right direction. Sample code, ideas, any
suggestions would be welcome.
Thanks in advance for the help. I've searched and searched prior to asking
but can't seem to find what I am looking for.
Tom
into an annoying problem. I'm writing a program that has to search the file
system and therefore processes large numbers of directories and files. I've
figured out DirectoryInfo (it's pretty simple), but when I invoke
DirectoryInfo.GetFiles (or even DirectoryInfo.GetDirectories), it can take
forever. Some of the directories have thousands of files in them.
So, my application just sits there and the user thinks it's locked up.
I'm looking for a way to get a callback from the GetFiles function so that I
can actually provide a reasonable processbar. I know I could just flash up a
progress bar or something, but I want the information to be meaningful.
Can someone point me in the right direction. Sample code, ideas, any
suggestions would be welcome.
Thanks in advance for the help. I've searched and searched prior to asking
but can't seem to find what I am looking for.
Tom