List large files in directories.

  • Thread starter Thread starter Paul Bromley
  • Start date Start date
P

Paul Bromley

I have 2 directories on a drive 0-499 and 500-999. Within these directories
are subdirectories - e.g. 1, 2 ,3 ..... 501,502 etc. There are a series of
files in these subdirectories. What I would like to do is search these
directories and display files above a certain size. Is there an easy way of
doing this in VB.NET??

Best wishes

Paul Bromley
 
Paul,

Paul Bromley said:
I have 2 directories on a drive 0-499 and 500-999. Within these directories
are subdirectories - e.g. 1, 2 ,3 ..... 501,502 etc. There are a series of
files in these subdirectories. What I would like to do is search these
directories and display files above a certain size. Is there an easy way of
doing this in VB.NET??

Take a look at the classes in the 'System.IO' namespace, namely 'File',
'FileInfo', 'Directory' (and its 'GetFile' method), and 'DirectoryInfo'.
 
Thanks for this Herfried - I think I am getting their with this, in fact I
have achieved what I want to do in regard to finding the files. I am placing
these in a treeview, and my main problem now is omitting the directory
entries from the treeview where no large files exist. I will play with this
and ask the gorup if I cannot get it sorted.

Many thanks

Paul Bromley
 
Back
Top